From 596b2e8df835788e6a49de4b908b2fe7691ab59f Mon Sep 17 00:00:00 2001 From: Russell Davies Date: Sun, 4 May 2014 12:16:25 +0100 Subject: [PATCH 1/2] 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) From cfb946677838afe9223dec369d9d329a5713868d Mon Sep 17 00:00:00 2001 From: Russell Davies Date: Sat, 19 Jul 2014 16:00:51 +0100 Subject: [PATCH 2/2] Updated CONTRIBUTORS.txt --- CONTRIBUTORS.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt index aee01707..3720cbf5 100644 --- a/CONTRIBUTORS.txt +++ b/CONTRIBUTORS.txt @@ -25,6 +25,7 @@ mozillazg / @mozillazg Henrique G. G. Pereira / @ikkebr Travis McNeill / gh: Tavistock / @tavistock_esq Matt Linares +Russell Davies * Possesses commit rights