added cookie settings for local and development

This commit is contained in:
Anatoly 2019-09-10 17:05:41 +03:00
parent 7e468c539a
commit 8e506bd5e1
2 changed files with 11 additions and 1 deletions

View File

@ -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'

View File

@ -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