diff --git a/scipost_django/SciPost_v1/settings/base.py b/scipost_django/SciPost_v1/settings/base.py index 7fe747675bf5f6f29bdb1e8fc786ce70cf166f6e..920479a37bdf63db70b3245efb10b7851fabc5db 100644 --- a/scipost_django/SciPost_v1/settings/base.py +++ b/scipost_django/SciPost_v1/settings/base.py @@ -71,7 +71,7 @@ os.environ['wsgi.url_scheme'] = 'https' # Application definition -INSTALLED_APPS = ( +INSTALLED_APPS = [ 'dal', # django-autocomplete-light 'dal_select2', # dal with Select2 'django.contrib.admin', @@ -132,7 +132,7 @@ INSTALLED_APPS = ( 'sitesserved', 'webpack_loader', 'maintenancemode', -) +] SITE_ID = 1 @@ -201,7 +201,7 @@ SHELL_PLUS_POST_IMPORTS = ( # } # } -MIDDLEWARE = ( +MIDDLEWARE = [ # 'django.middleware.http.ConditionalGetMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'corsheaders.middleware.CorsMiddleware', @@ -217,7 +217,7 @@ MIDDLEWARE = ( 'django_referrer_policy.middleware.ReferrerPolicyMiddleware', 'csp.middleware.CSPMiddleware', 'oauth2_provider.middleware.OAuth2TokenMiddleware', -) +] SECURE_BROWSER_XSS_FILTER = True SECURE_HSTS_SECONDS = 15768000 diff --git a/scipost_django/SciPost_v1/settings/local_JSC.py b/scipost_django/SciPost_v1/settings/local_JSC.py index caeca49dc9df7135e500cc7f0f4cfb48d577c4aa..a8609faac16d34a6a649848045cb71707b5228fd 100644 --- a/scipost_django/SciPost_v1/settings/local_JSC.py +++ b/scipost_django/SciPost_v1/settings/local_JSC.py @@ -3,6 +3,15 @@ from .base import * # THE MAIN THING HERE DEBUG = True +# Enable django-debug-toolbar +INSTALLED_APPS += ['debug_toolbar',] +INTERNAL_IPS = [ + '127.0.0.1', +] +MIDDLEWARE.insert(0, "debug_toolbar.middleware.DebugToolbarMiddleware") + + + # Static and media STATIC_ROOT = '/home/jscaux/SciPost/sites/scipost.org/SciPost/local_files/static/' MEDIA_ROOT = '/home/jscaux/SciPost/sites/scipost.org/SciPost/local_files/media/'