5 if __name__ == "__main__":
6 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "planetstack.settings")
8 from django.core.management import execute_from_command_line
10 if "--nomodelpolicy" in sys.argv:
12 model_policy.EnableModelPolicy(False)
13 sys.argv.remove("--nomodelpolicy")
15 if "--noobserver" in sys.argv:
17 observer.EnableObserver(False)
18 sys.argv.remove("--noobserver")
20 execute_from_command_line(sys.argv)