Fabfile and settings

master
Nick Sergeant 2012-05-24 23:21:56 -04:00
parent b12135eb90
commit f27d79d67a
2 changed files with 12 additions and 0 deletions

9
fabfile.py vendored
View File

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

View File

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