summaryrefslogtreecommitdiff
path: root/tasks.py
diff options
context:
space:
mode:
authorankitjavalkar2017-11-08 19:03:15 +0530
committerankitjavalkar2017-11-08 19:03:15 +0530
commitf5090dec9e11000da9a9bb1a86f181fb14372ce4 (patch)
tree532a4330a00d4eb3f0dc26fc380cfa2c1a51e4f7 /tasks.py
parent6fb9f74ee9d2de9a8fb6714907da52a3ed870431 (diff)
downloadonline_test-f5090dec9e11000da9a9bb1a86f181fb14372ce4.tar.gz
online_test-f5090dec9e11000da9a9bb1a86f181fb14372ce4.tar.bz2
online_test-f5090dec9e11000da9a9bb1a86f181fb14372ce4.zip
Add makemigrations and loaddata command to serve command
Diffstat (limited to 'tasks.py')
-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):