diff --git a/project/settings/development.py b/project/settings/development.py index 7ecc6aa2..2bf4d952 100644 --- a/project/settings/development.py +++ b/project/settings/development.py @@ -1,5 +1,4 @@ """Development settings.""" -from .base import * ALLOWED_HOSTS = ['gm.id-east.ru', '95.213.204.126'] @@ -11,3 +10,8 @@ SCHEMA_URI = 'http' DEFAULT_SUBDOMAIN = 'www' SITE_DOMAIN_URI = 'id-east.ru' DOMAIN_URI = 'gm.id-east.ru' + + +# COOKIES +CSRF_COOKIE_DOMAIN = '.id-east.ru' +SESSION_COOKIE_DOMAIN = '.id-east.ru' diff --git a/project/settings/local.py b/project/settings/local.py index 1c73a857..6edf7124 100644 --- a/project/settings/local.py +++ b/project/settings/local.py @@ -12,6 +12,12 @@ DEFAULT_SUBDOMAIN = 'www' SITE_DOMAIN_URI = 'testserver.com:8000' DOMAIN_URI = '0.0.0.0:8000' + +# COOKIES +CSRF_COOKIE_DOMAIN = '0.0.0.0:8000' +SESSION_COOKIE_DOMAIN = '0.0.0.0:8000' + + # CELERY BROKER_URL = 'amqp://rabbitmq:5672' CELERY_RESULT_BACKEND = BROKER_URL