blob: 4a7e2df9da0ed95cd9efceca38e0b0bf920f741d [file] [log] [blame]
Tony Mack7130ac32013-03-22 21:58:00 -04001#!/usr/bin/env python
2import os
3import sys
4
5if __name__ == "__main__":
Siobhan Tully30fd4292013-05-10 08:59:56 -04006 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "planetstack.settings")
Tony Mack7130ac32013-03-22 21:58:00 -04007
8 from django.core.management import execute_from_command_line
9
Scott Baker79eaac22014-10-21 15:05:29 -070010 if "--nomodelpolicy" in sys.argv:
11 import model_policy
12 model_policy.EnableModelPolicy(False)
13 sys.argv.remove("--nomodelpolicy")
14
Scott Bakerfbe0cd72014-11-19 18:01:13 -080015 if "--noobserver" in sys.argv:
16 import observer
17 observer.EnableObserver(False)
18 sys.argv.remove("--noobserver")
19
Tony Mack7130ac32013-03-22 21:58:00 -040020 execute_from_command_line(sys.argv)