From 0102b8a0eec2eed952b51135ec70e58abf47933b Mon Sep 17 00:00:00 2001 From: Ashley Camba Date: Tue, 17 Dec 2013 16:44:20 +0100 Subject: [PATCH] adding manage.py to scripts --- {{cookiecutter.repo_name}}/setup.py | 2 +- .../{{cookiecutter.project_name}}/manage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.repo_name}}/setup.py b/{{cookiecutter.repo_name}}/setup.py index 66e03086..ce05cdae 100644 --- a/{{cookiecutter.repo_name}}/setup.py +++ b/{{cookiecutter.repo_name}}/setup.py @@ -4,7 +4,6 @@ import os import sys -import {{ cookiecutter.project_name }} try: from setuptools import setup @@ -25,4 +24,5 @@ setup( install_requires=[ ], zip_safe=False, + scripts=['manage.py'], ) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/manage.py b/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/manage.py index 384bd508..9f5bdbf0 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/manage.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/manage.py @@ -3,7 +3,7 @@ import os import sys if __name__ == "__main__": - os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") + os.environ.setdefault("DJANGO_SETTINGS_MODULE", "{{cookiecutter.project_name}}.config.settings") os.environ.setdefault("DJANGO_CONFIGURATION", "Local") from configurations.management import execute_from_command_line