blob: 0ddd014d474ef8471a1ffb5652586584afd9c110 [file] [log] [blame]
Tony Mack7130ac32013-03-22 21:58:00 -04001#!/usr/bin/env python
2import os
3import sys
4
5if __name__ == "__main__":
Scott Baker86e132c2015-02-11 21:38:09 -08006 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "xos.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
Scott Bakerd3a5a2e2014-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)