commit | 52697b4017f219366d67e5033ebfe579f7d1fffd | [log] [tgz] |
---|---|---|
author | David K. Bainbridge <dbainbri@ciena.com> | Thu Dec 03 16:16:38 2015 -0800 |
committer | David K. Bainbridge <dbainbri@ciena.com> | Thu Dec 03 16:16:38 2015 -0800 |
tree | 27b8f9cfce36fea5f840bbebc0d15c8b8c7f05a5 | |
parent | f234cdbedcf1df56651627abce41303684a2e65b [diff] |
update manage to be able to run makemigrations via flag
diff --git a/xos/manage.py b/xos/manage.py index 0ddd014..5d09794 100644 --- a/xos/manage.py +++ b/xos/manage.py
@@ -7,6 +7,10 @@ from django.core.management import execute_from_command_line + if "--makemigrations" in sys.argv: + os.system("/opt/xos/scripts/opencloud makemigrations") + sys.argv.remove("--makemigrations") + if "--nomodelpolicy" in sys.argv: import model_policy model_policy.EnableModelPolicy(False)