diff --git a/alexia/conf/settings/base.py b/alexia/conf/settings/base.py index 1028353..e2bf0dc 100644 --- a/alexia/conf/settings/base.py +++ b/alexia/conf/settings/base.py @@ -74,7 +74,6 @@ 'crispy_forms', 'debug_toolbar', 'jsonrpc', - 'sslserver', 'wkhtmltopdf', # OIDC Client (authentication via auth.ia) diff --git a/alexia/conf/settings/environ.py b/alexia/conf/settings/environ.py index 7740d99..9164319 100644 --- a/alexia/conf/settings/environ.py +++ b/alexia/conf/settings/environ.py @@ -45,6 +45,16 @@ def get_random_secret_key_no_dollar(): PYDEV_DEBUGGER = False PYDEV_DEBUGGER_IP = None + +# Only enable rosetta and runserver_plus in debug mode +if DEBUG: + INSTALLED_APPS = INSTALLED_APPS + ['rosetta'] + ROSETTA_POFILE_WRAP_WIDTH = 0 + + # Enable django-extensions in debug mode (runserver_plus cmd) + INSTALLED_APPS = INSTALLED_APPS + ['django_extensions'] + + # Do not redirect to HTTPS, because the nginx proxy container only listens on HTTP SECURE_SSL_REDIRECT = False