From 596b2e8df835788e6a49de4b908b2fe7691ab59f Mon Sep 17 00:00:00 2001 From: Russell Davies Date: Sun, 4 May 2014 12:16:25 +0100 Subject: [PATCH] Updated wsgi to default to Production configuration Prevents the application server from running in Local configuration if DJANGO_CONFIGURATION variable is not set. Related to: pydanny#75 --- .../{{cookiecutter.repo_name}}/config/wsgi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/wsgi.py b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/wsgi.py index f2f5b8fb..34b5548f 100644 --- a/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/wsgi.py +++ b/{{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/config/wsgi.py @@ -20,7 +20,7 @@ import os # mod_wsgi daemon mode with each site in its own daemon process, or use # os.environ["DJANGO_SETTINGS_MODULE"] = "{{ repo_name }}.settings" os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings") -os.environ.setdefault("DJANGO_CONFIGURATION", "Local") +os.environ.setdefault("DJANGO_CONFIGURATION", "Production") # This application object is used by any WSGI server configured to use this # file. This includes Django's development server, if the WSGI_APPLICATION @@ -30,4 +30,4 @@ application = get_wsgi_application() # Apply WSGI middleware here. # from helloworld.wsgi import HelloWorldApplication -# application = HelloWorldApplication(application) \ No newline at end of file +# application = HelloWorldApplication(application)