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-01 20:14:32 +00:00
|
|
|
if sys.version_info < (3, 4):
|
|
|
|
cmd = ' '.join(sys.argv)
|
|
|
|
sys.stderr.write("Sorry, you need at least Python 3.4, try with:\n$ python3 %s\n" % cmd)
|
|
|
|
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)
|