Mercurial > public > sg101
view fabfile.py @ 752:95f4e7f352fd
For Django 1.6: contrib auth password reset confirm view signature changed.
The uidb64 parameter was previously base 36 encoded and named uidb36.
Had to update urls.py. While I was in there I decided to make the
password reset email use the {% url %} tag to be more resilient if the
url changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 01 Jan 2014 19:52:07 -0600 |
parents | d9d6b4b8bab7 |
children |
line wrap: on
line source
from fabric.api import cd, run PYTHON = '/svr/django-sites/sg101/bin/python' PROJ_DIR = '/svr/django-sites/sg101/sg101' def update(): """ Runs hg pull --update to pull changes and update to them. """ with cd(PROJ_DIR): run('hg pull --update') def collectstatic(): """ Runs the staticfiles collectstatic command to deploy static assets. """ cmd = ('%s manage.py collectstatic ' '--settings=sg101.settings.production --noinput') % PYTHON with cd(PROJ_DIR): run(cmd) def touch(): """ Touches the wsgi file to reload the Python code. """ with cd(PROJ_DIR): run('touch ./sg101/apache/sg101.wsgi')