Skip to content

Commit

Permalink
Add Environment Variable to Allowed Hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Schmexs committed Jul 23, 2023
1 parent 3abab05 commit 85d16b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drinkman/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True if os.getenv("DJANGO_DEBUG", False) or int(os.getenv("DJANGO_DEV", 0)) else False

ALLOWED_HOSTS = ['agdsn.de', 'localhost', '127.0.0.1']
ALLOWED_HOSTS = [os.getenv("DJANGO_ALLOWED_HOSTS"), 'localhost', '127.0.0.1']

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

Expand Down

0 comments on commit 85d16b7

Please sign in to comment.