Updated fab script for recent Django's
This commit is contained in:
parent
dce7472672
commit
1683591dab
1 changed files with 2 additions and 3 deletions
5
scripts/fabfile.py
vendored
5
scripts/fabfile.py
vendored
|
|
@ -29,13 +29,12 @@ def clone_remote_db(dbtype='sqlite'):
|
|||
# Dump remote data and download the file
|
||||
with cd(APP_DIR):
|
||||
with prefix('source %s' % VIRTUALENV_DIR):
|
||||
run('python manage.py dumpdata --indent 1 contenttypes auth stages > epcstages.json')
|
||||
run('python manage.py dumpdata --natural-foreign --indent 1 -e auth.Permission auth stages > epcstages.json')
|
||||
get('epcstages.json', '.')
|
||||
|
||||
# Recreate a fresh DB with downloaded data
|
||||
local("python ../manage.py syncdb --noinput")
|
||||
local("python ../manage.py flush --noinput")
|
||||
local("python ../manage.py migrate")
|
||||
local("python ../manage.py flush --noinput")
|
||||
local("python ../manage.py loaddata epcstages.json")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue