Update core/settings.py
This commit is contained in:
parent
0308bfe69f
commit
765154ac06
@ -24,7 +24,10 @@ BASE_DIR = Path(__file__).resolve().parent.parent
|
|||||||
SECRET_KEY = os.environ.get("SECRET_KEY")
|
SECRET_KEY = os.environ.get("SECRET_KEY")
|
||||||
|
|
||||||
DEBUG = os.environ.get("DEBUG", "True").lower() == "true"
|
DEBUG = os.environ.get("DEBUG", "True").lower() == "true"
|
||||||
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS").split(",")
|
|
||||||
|
ALLOWED_HOSTS = os.environ.get("ALLOWED_HOSTS", "").split(",")
|
||||||
|
CSRF_TRUSTED_ORIGINS = [f"http://{host}" for host in os.environ.get("ALLOWED_HOSTS", "").split(",")]
|
||||||
|
CORS_ORIGIN_WHITELIST = os.environ.get("ALLOWED_HOSTS", "").split(",")
|
||||||
|
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
Loading…
Reference in New Issue
Block a user