Added Vanilla fixture for database.mod
This commit is contained in:
parent
50c9ae667d
commit
7fbe0b241b
|
@ -0,0 +1,10 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"pk": 1,
|
||||||
|
"model": "database.mod",
|
||||||
|
"fields": {
|
||||||
|
"url": "http://www.minecraft.com/",
|
||||||
|
"name": "Vanilla"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -137,7 +137,19 @@ def syncdb():
|
||||||
if not active_virtualenv():
|
if not active_virtualenv():
|
||||||
with prefix(env.activate):
|
with prefix(env.activate):
|
||||||
local('python minecraftcodex/manage.py syncdb --noinput')
|
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/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')
|
local('python minecraftcodex/manage.py migrate')
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue