From 002fbc45c5c9dd7c079084287315246e50bc2008 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Mon, 5 Oct 2015 23:06:20 -0400 Subject: [PATCH] Weird COOKIE_DOMAIN issues on some localhosts. --- settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/settings.py b/settings.py index ca6831d..0f6303d 100644 --- a/settings.py +++ b/settings.py @@ -32,7 +32,7 @@ ALLOWED_HOSTS = ['*'] AUTH_PROFILE_MODULE = 'accounts.UserProfile' AUTHENTICATION_BACKENDS = ('utils.backends.EmailOrUsernameModelBackend',) BASE_PATH = os.path.dirname(__file__) -CSRF_COOKIE_DOMAIN = '.snipt.net' +CSRF_COOKIE_DOMAIN = '.snipt.net' if 'USE_SSL' in os.environ else False CSRF_COOKIE_SECURE = True if 'USE_SSL' in os.environ else False DEBUG = True if 'DEBUG' in os.environ else False DEFAULT_FROM_EMAIL = 'support@snipt.net'