cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/manage.py

12 lines
341 B
Python
Raw Normal View History

#!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
2013-12-17 19:44:20 +04:00
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{cookiecutter.project_name}}.config.settings")
2013-09-15 17:02:13 +04:00
os.environ.setdefault("DJANGO_CONFIGURATION", "Local")
2013-09-15 17:02:13 +04:00
from configurations.management import execute_from_command_line
execute_from_command_line(sys.argv)