Added Vanilla fixture for database.mod

This commit is contained in:
Felipe Martín 2013-05-20 16:28:38 +02:00
parent 50c9ae667d
commit 7fbe0b241b
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[
{
"pk": 1,
"model": "database.mod",
"fields": {
"url": "http://www.minecraft.com/",
"name": "Vanilla"
}
}
]

12
fabfile.py vendored
View File

@ -137,7 +137,19 @@ def syncdb():
if not active_virtualenv():
with prefix(env.activate):
local('python minecraftcodex/manage.py syncdb --noinput')
execute(migrate)
def fixtures():
if not active_virtualenv():
with prefix(env.activate):
local('python minecraftcodex/manage.py loaddata ./config/development/admin.json')
local('python minecraftcodex/manage.py loaddata ./config/production/vanilla.json')
def migrate():
if not active_virtualenv():
with prefix(env.activate):
local('python minecraftcodex/manage.py migrate')