mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-02-17 03:51:02 +03:00
Merge pull request #102 from russelldavies/pydanny#75
Updated wsgi to default to Production configuration
This commit is contained in:
commit
3719db26de
|
@ -25,6 +25,7 @@ mozillazg / @mozillazg
|
||||||
Henrique G. G. Pereira / @ikkebr
|
Henrique G. G. Pereira / @ikkebr
|
||||||
Travis McNeill / gh: Tavistock / @tavistock_esq
|
Travis McNeill / gh: Tavistock / @tavistock_esq
|
||||||
Matt Linares
|
Matt Linares
|
||||||
|
Russell Davies
|
||||||
|
|
||||||
* Possesses commit rights
|
* Possesses commit rights
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ import os
|
||||||
# mod_wsgi daemon mode with each site in its own daemon process, or use
|
# mod_wsgi daemon mode with each site in its own daemon process, or use
|
||||||
# os.environ["DJANGO_SETTINGS_MODULE"] = "{{ repo_name }}.settings"
|
# os.environ["DJANGO_SETTINGS_MODULE"] = "{{ repo_name }}.settings"
|
||||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.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
|
# This application object is used by any WSGI server configured to use this
|
||||||
# file. This includes Django's development server, if the WSGI_APPLICATION
|
# file. This includes Django's development server, if the WSGI_APPLICATION
|
||||||
|
@ -30,4 +30,4 @@ application = get_wsgi_application()
|
||||||
|
|
||||||
# Apply WSGI middleware here.
|
# Apply WSGI middleware here.
|
||||||
# from helloworld.wsgi import HelloWorldApplication
|
# from helloworld.wsgi import HelloWorldApplication
|
||||||
# application = HelloWorldApplication(application)
|
# application = HelloWorldApplication(application)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user