add csrf trusted host setting
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
0744806f8c
commit
a2bd0f0fbf
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@
|
||||||
hash = "sha256-1x+pYMHaKgLFWcL1axOv/ok1ebs0I7Q+Q6htncmgJzU=";
|
hash = "sha256-1x+pYMHaKgLFWcL1axOv/ok1ebs0I7Q+Q6htncmgJzU=";
|
||||||
localSettings = pkgs.writeText "local_settings.py" ''
|
localSettings = pkgs.writeText "local_settings.py" ''
|
||||||
import os
|
import os
|
||||||
|
CSRF_TRUSTED_HOSTS = os.getenv("CSRF_TRUSTED_HOSTS", "").split(",")
|
||||||
STATIC_ROOT = os.getenv("STATIC_ROOT")
|
STATIC_ROOT = os.getenv("STATIC_ROOT")
|
||||||
STATICFILES_DIRS = [ ]
|
STATICFILES_DIRS = [ ]
|
||||||
SECRET_KEY_FILE = os.getenv("SECRET_KEY_FILE")
|
SECRET_KEY_FILE = os.getenv("SECRET_KEY_FILE")
|
||||||
|
|
Loading…
Reference in a new issue