Mercurial > public > madeira
view fabfile.py @ 95:7b52e8ef01ec
For Django 1.5: Remove usage of django.contrib.markup.
Since we were only using Textile in one place, decided to stop using it
altogether.
Wrote a management command, untextile, to convert the gallery models'
description fields from textile to raw HTML. This should be run one time before
going live with Django 1.5.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 28 Aug 2013 19:22:23 -0500 |
parents | d2e32fa2dc99 |
children | 55ceb9824443 |
line wrap: on
line source
from fabric.api import cd, run PYTHON = '/home/var/django-sites/virtualenvs/madeira/bin/python' WC_DIR = '/home/var/django-sites/virtualenvs/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')