Skip to content

Commit

Permalink
Remove sslserver from INSTALLED_APPS, enable rosetta and django-exten…
Browse files Browse the repository at this point in the history
…sions in DEBUG=True in containers
  • Loading branch information
Kurocon committed Sep 23, 2024
1 parent 331543a commit a9ee130
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion alexia/conf/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
'crispy_forms',
'debug_toolbar',
'jsonrpc',
'sslserver',
'wkhtmltopdf',

# OIDC Client (authentication via auth.ia)
Expand Down
10 changes: 10 additions & 0 deletions alexia/conf/settings/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a9ee130

Please sign in to comment.