-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scottx611x/django 1.7 upgrade apache settings fix (#1544)
* Allow for env vars set by Apache to be accessible by Django * Change "fail-safe" to use our production settings * Add useful comment * Switch back to `dev` * Change Apache conf template to not use `SetEnv` and be able to handle different wsgi configs * Split into different wsgi config files to move away from SetEnv hack * Update fabfile accordingly
- Loading branch information
1 parent
486116a
commit 94f51b4
Showing
6 changed files
with
34 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
from django.core.wsgi import get_wsgi_application | ||
|
||
# Set env vars to be made available to the wsgi application here | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings.aws' | ||
|
||
application = get_wsgi_application() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
from django.core.wsgi import get_wsgi_application | ||
|
||
# Set env vars to be made available to the wsgi application here | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings.dev' | ||
|
||
application = get_wsgi_application() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import os | ||
from django.core.wsgi import get_wsgi_application | ||
|
||
# Set env vars to be made available to the wsgi application here | ||
os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings.prod' | ||
|
||
application = get_wsgi_application() |