Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions chris_backend/config/local_urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
from django.urls import path, include
from django.conf import settings

from .urls import urlpatterns as production_urlpatterns

urlpatterns = production_urlpatterns

if settings.DEBUG:
import debug_toolbar

urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)),
]
13 changes: 8 additions & 5 deletions chris_backend/config/settings/local.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/

# as for urls for dev env
ROOT_URLCONF = 'config.local_urls'

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'w1kxu^l=@pnsf!5piqz6!!5kdcdpo79y6jebbp+2244yjm*#+k'

Expand Down Expand Up @@ -80,10 +83,10 @@
'pipelines', 'userfiles', 'pacsfiles', 'users', 'filebrowser',
'workflows']:
LOGGING['loggers'][app] = {
'level': 'DEBUG',
'handlers': ['console_verbose', 'file'],
'propagate': False # required to avoid double logging with root logger
}
'level': 'DEBUG',
'handlers': ['console_verbose', 'file'],
'propagate': False # required to avoid double logging with root logger
}

# Storage Settings
STORAGE_ENV = os.getenv('STORAGE_ENV', 'swift')
Expand Down Expand Up @@ -172,7 +175,7 @@

# Celery settings

#CELERY_BROKER_URL = 'amqp://guest:guest@localhost'
# CELERY_BROKER_URL = 'amqp://guest:guest@localhost'
CELERY_BROKER_URL = 'amqp://queue:5672'

#: Only add pickle to this list if your broker is secured
Expand Down
7 changes: 0 additions & 7 deletions chris_backend/config/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,3 @@
path('schema/swagger-ui/', SpectacularSwaggerView.as_view(url_name='schema'), name='swagger-ui'),
path('schema/redoc/', SpectacularRedocView.as_view(url_name='schema'), name='redoc'),
]

if settings.DEBUG:
import debug_toolbar

urlpatterns += [
path('__debug__/', include(debug_toolbar.urls)),
]
15 changes: 6 additions & 9 deletions requirements/local.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# Local development dependencies go here
-r base.txt
django-debug-toolbar==5.2.0
django-extensions==4.1
collection-json==0.1.1
coverage==7.8.0
pylint==3.3.7
flake8==7.2.0
isort==6.0.1
pudb==2025.1
django-debug-toolbar==5.2.0 # for Jorge's needs of dev env
django-extensions==4.1 # for Jorge's needs of dev env
collection-json==0.1.1 # required in collectionjson.tests.test_renderers
coverage==7.8.0 # test coverage
pylint==3.3.7 # lint
flake8==7.2.0 # auto-format
daphne==4.1.2 # required by (django) channels.testing
https://github.com/msbrogli/rpudb/archive/master.zip
Loading