blob: ce14cdb0a060b035b46610fd28c575eb7da9bae0 [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 Bakerf3428702014-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
Tony Mack7130ac32013-03-22 21:58:00 -040015 execute_from_command_line(sys.argv)