Skip to content

Commit

Permalink
Merge pull request #113 from EarthSchlange/settings_clean_up
Browse files Browse the repository at this point in the history
Settings clean up
  • Loading branch information
Michael Hiiva authored Aug 22, 2020
2 parents 866fd79 + cda2066 commit 317c5bd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 27 deletions.
26 changes: 0 additions & 26 deletions agagd/agagd/settings/dev.py

This file was deleted.

15 changes: 14 additions & 1 deletion agagd/agagd/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,21 @@
# setting points here.
from django.core.wsgi import get_wsgi_application

agagd_environ_keys = [
'DJANGO_SETTINGS_MODULE',
'GOOGLE_ANALYTICS_TRACKING_ID',
'AGAGD_USER',
'MYSQL_PASS',
'APP_DB_NAME',
'DB_HOST',
'DB_PORT',
'SECRET_KEY',
'PROJECT_ROOT',
'TEMPLATE_DIR'
]

def bootstrap_env(environ, start_response):
for key in ['DJANGO_SETTINGS_MODULE', 'GOOGLE_ANALYTICS_TRACKING_ID', 'AGAGD_USER', 'MYSQL_PASS', 'APP_DB_NAME', 'SECRET_KEY', 'TEMPLATE_DIR']:
for key in agagd_environ_keys:
if key in environ:
os.environ[key] = environ[key]
_application = get_wsgi_application()
Expand Down

0 comments on commit 317c5bd

Please sign in to comment.