Add CSRF_TRUSTED_ORIGINS from environment
This commit is contained in:
parent
c787e55ef3
commit
50d9c603bd
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,8 @@ DEBUG = os.environ.get('DEBUG', 'True') == 'True'
|
|||
|
||||
ALLOWED_HOSTS = os.environ.get('ALLOWED_HOSTS', 'localhost 127.0.0.1').split()
|
||||
|
||||
CSRF_TRUSTED_ORIGINS = os.environ.get('CSRF_TRUSTED_ORIGINS', '').split()
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue