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