Mercurial > public > madeira
view fabfile.py @ 130:3062c547bb90
For Django 1.6: new test discovery plus reverse now does urlquote().
My base64 keys were padded with '=' and these got quoted when doing
a reverse to generate the URL. So changed the test to look for a
quoted version of the key. This will change the URLs sent to users, but
I believe it will all be taken care of by Django.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 24 Dec 2013 16:47:27 -0600 |
parents | 55ceb9824443 |
children | 8a93b1f838f9 |
line wrap: on
line source
from fabric.api import cd, run PYTHON = '/svr/django-sites/madeira/bin/python' WC_DIR = '/svr/django-sites/madeira/madeira' PROJ_DIR = WC_DIR 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=madeira.settings.production --noinput') % PYTHON with cd(PROJ_DIR): run(cmd) def cleanup(): """ Runs the cleanup management command. """ cmd = '%s manage.py cleanup --settings=madeira.settings.production' % PYTHON with cd(PROJ_DIR): run(cmd) def touch(): """ Touches the wsgi file to reload the Python code. """ with cd(PROJ_DIR): run('touch madeira/apache/madeira.wsgi')