Skip to content

Commit

Permalink
Fix allowed hosts config
Browse files Browse the repository at this point in the history
  • Loading branch information
arturo-seijas committed Feb 22, 2024
1 parent 5f98dd8 commit 7956bb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
https://docs.djangoproject.com/en/4.2/ref/settings/
"""

import json
import os
import urllib
from pathlib import Path
Expand All @@ -27,7 +28,7 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = os.environ.get("DEBUG", False)

ALLOWED_HOSTS = []
ALLOWED_HOSTS = json.loads(os.environ.get("DJANGO_ALLOWED_HOSTS", "[]"))


# Application definition
Expand Down

0 comments on commit 7956bb2

Please sign in to comment.