summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tasks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tasks.py b/tasks.py
index 11a207a..2c8882d 100644
--- a/tasks.py
+++ b/tasks.py
@@ -14,7 +14,9 @@ def create_dir(path):
@task
def setupdb(ctx):
print("** Setting up & migrating database **")
+ ctx.run("python manage.py makemigrations")
ctx.run("python manage.py migrate")
+ ctx.run("python manage.py loaddata demo_fixtures.json")
@task(setupdb)
def serve(ctx):