django-orchestra/orchestra/conf/project_template/manage.py

14 lines
455 B
Python
Raw Normal View History

2015-10-01 20:14:32 +00:00
#!/usr/bin/env python3
2014-05-08 16:59:35 +00:00
import os
import sys
2015-10-01 20:14:32 +00:00
2014-05-08 16:59:35 +00:00
if __name__ == "__main__":
2015-10-02 09:31:32 +00:00
if sys.version_info < (3, 3):
2015-10-01 20:14:32 +00:00
cmd = ' '.join(sys.argv)
2015-10-02 09:31:32 +00:00
sys.stderr.write("Sorry, Orchestra requires at least Python 3.3, try with:\n$ python3 %s\n" % cmd)
2015-10-01 20:14:32 +00:00
sys.exit(1)
2014-05-08 16:59:35 +00:00
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{ project_name }}.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)