diff options
author | ankitjavalkar | 2017-11-08 19:03:15 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-11-08 19:03:15 +0530 |
commit | f5090dec9e11000da9a9bb1a86f181fb14372ce4 (patch) | |
tree | 532a4330a00d4eb3f0dc26fc380cfa2c1a51e4f7 /tasks.py | |
parent | 6fb9f74ee9d2de9a8fb6714907da52a3ed870431 (diff) | |
download | online_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.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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): |