comparison fabfile.py @ 168:8a93b1f838f9

Update fabric file for Django 1.7 upgrade. cleanup command is now called clearsessions.
author Brian Neal <bgneal@gmail.com>
date Thu, 02 Apr 2015 21:04:08 -0500
parents 55ceb9824443
children
comparison
equal deleted inserted replaced
160:21d0aed12a6e 168:8a93b1f838f9
25 run(cmd) 25 run(cmd)
26 26
27 27
28 def cleanup(): 28 def cleanup():
29 """ 29 """
30 Runs the cleanup management command. 30 Runs any/all cleanup-type management commands.
31 31
32 """ 32 """
33 cmd = '%s manage.py cleanup --settings=madeira.settings.production' % PYTHON 33 cmd = '%s manage.py clearsessions --settings=madeira.settings.production' % PYTHON
34 34
35 with cd(PROJ_DIR): 35 with cd(PROJ_DIR):
36 run(cmd) 36 run(cmd)
37 37
38 38