debug toobar stuff
This commit is contained in:
parent
eb119b7443
commit
7d834ee088
@ -115,7 +115,6 @@ INSTALLED_APPS = [
|
|||||||
'allauth.socialaccount',
|
'allauth.socialaccount',
|
||||||
'cookbook.apps.CookbookConfig',
|
'cookbook.apps.CookbookConfig',
|
||||||
'treebeard',
|
'treebeard',
|
||||||
'debug_toolbar'
|
|
||||||
]
|
]
|
||||||
|
|
||||||
SOCIAL_PROVIDERS = os.getenv('SOCIAL_PROVIDERS').split(',') if os.getenv('SOCIAL_PROVIDERS') else []
|
SOCIAL_PROVIDERS = os.getenv('SOCIAL_PROVIDERS').split(',') if os.getenv('SOCIAL_PROVIDERS') else []
|
||||||
@ -157,9 +156,12 @@ MIDDLEWARE = [
|
|||||||
'django.middleware.locale.LocaleMiddleware',
|
'django.middleware.locale.LocaleMiddleware',
|
||||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||||
'cookbook.helper.scope_middleware.ScopeMiddleware',
|
'cookbook.helper.scope_middleware.ScopeMiddleware',
|
||||||
'debug_toolbar.middleware.DebugToolbarMiddleware',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if DEBUG:
|
||||||
|
MIDDLEWARE += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
|
||||||
|
INSTALLED_APPS += ('debug_toolbar',)
|
||||||
|
|
||||||
SORT_TREE_BY_NAME = bool(int(os.getenv('SORT_TREE_BY_NAME', False)))
|
SORT_TREE_BY_NAME = bool(int(os.getenv('SORT_TREE_BY_NAME', False)))
|
||||||
DISABLE_TREE_FIX_STARTUP = bool(int(os.getenv('DISABLE_TREE_FIX_STARTUP', False)))
|
DISABLE_TREE_FIX_STARTUP = bool(int(os.getenv('DISABLE_TREE_FIX_STARTUP', False)))
|
||||||
|
|
||||||
@ -244,7 +246,6 @@ OAUTH2_PROVIDER = {
|
|||||||
READ_SCOPE = 'read'
|
READ_SCOPE = 'read'
|
||||||
WRITE_SCOPE = 'write'
|
WRITE_SCOPE = 'write'
|
||||||
|
|
||||||
|
|
||||||
REST_FRAMEWORK = {
|
REST_FRAMEWORK = {
|
||||||
'DEFAULT_AUTHENTICATION_CLASSES': (
|
'DEFAULT_AUTHENTICATION_CLASSES': (
|
||||||
'rest_framework.authentication.SessionAuthentication',
|
'rest_framework.authentication.SessionAuthentication',
|
||||||
@ -327,7 +328,7 @@ DATABASES = {
|
|||||||
'HOST': 'localhost',
|
'HOST': 'localhost',
|
||||||
'PORT': 5432,
|
'PORT': 5432,
|
||||||
'USER': 'postgres',
|
'USER': 'postgres',
|
||||||
'PASSWORD': 'postgres', # set to local pw
|
'PASSWORD': 'postgres', # set to local pw
|
||||||
'NAME': 'tandoor_app',
|
'NAME': 'tandoor_app',
|
||||||
'CONN_MAX_AGE': 600,
|
'CONN_MAX_AGE': 600,
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
Django==4.0.7
|
Django==4.1.1
|
||||||
cryptography==37.0.2
|
cryptography==37.0.2
|
||||||
django-annoying==0.10.6
|
django-annoying==0.10.6
|
||||||
django-autocomplete-light==3.9.4
|
django-autocomplete-light==3.9.4
|
||||||
|
Loading…
Reference in New Issue
Block a user