fix bug preventing deployment admin from updating deployment flavors on ssave. fix...
[plstackapi.git] / planetstack / manage.py
1 #!/usr/bin/env python
2 import os
3 import sys
4
5 if __name__ == "__main__":
6     os.environ.setdefault("DJANGO_SETTINGS_MODULE", "planetstack.settings")
7
8     from django.core.management import execute_from_command_line
9
10     if "--nomodelpolicy" in sys.argv:
11         import model_policy
12         model_policy.EnableModelPolicy(False)
13         sys.argv.remove("--nomodelpolicy")
14
15     if "--noobserver" in sys.argv:
16         import observer
17         observer.EnableObserver(False)
18         sys.argv.remove("--noobserver")
19
20     execute_from_command_line(sys.argv)