From f27d79d67a9401224e5bea68f7b081c3c0dad7d9 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Thu, 24 May 2012 23:21:56 -0400 Subject: [PATCH] Fabfile and settings --- fabfile.py | 9 +++++++++ settings.py | 3 +++ 2 files changed, 12 insertions(+) diff --git a/fabfile.py b/fabfile.py index 7e23565..8d545fc 100644 --- a/fabfile.py +++ b/fabfile.py @@ -47,6 +47,15 @@ def dep(): run(_python('manage.py collectstatic --ignore grappelli --ignore admin --noinput')) +def db(): + with cd(env.site_path): + + _display_message('Sync DB and migrate') + ################ + + run(_python('manage.py syncdb')) + run(_python('manage.py migrate')) + def re(): with cd(env.site_path): diff --git a/settings.py b/settings.py index 6c726bb..d3415cd 100644 --- a/settings.py +++ b/settings.py @@ -199,6 +199,9 @@ LOGIN_URL = '/login/' LOGOUT_URL = '/logout/' ACCOUNT_ACTIVATION_DAYS = 0 +# Cookies +SESSION_COOKIE_DOMAIN = '.snipt.net' + # HTTPS if not DEBUG: USE_HTTPS = True