2 from __future__ import absolute_import, unicode_literals
7 from settings import PROJECT_ROOT, PROJECT_DIRNAME
9 sys.path.insert(0, os.path.join(os.path.dirname(__file__), '../..'))
10 sys.path.insert(0, os.path.abspath(os.path.join(PROJECT_ROOT, "..")))
12 if __name__ == "__main__":
13 settings_module = "%s.settings" % PROJECT_DIRNAME
14 os.environ.setdefault("DJANGO_SETTINGS_MODULE", settings_module)
15 from django.core.management import execute_from_command_line
16 execute_from_command_line(sys.argv)