Commit fbd22b18 by Őry Máté

django: fix for prod environment

parent e5ca8624
......@@ -4,3 +4,5 @@ from .base import *
DEBUG = False
TEMPLATE_DEBUG = DEBUG
STORE_SETTINGS['store_url'] = 'https://store.cloud.ik.bme.hu'
STORE_SETTINGS['ssl_auth'] = 'True'
......@@ -15,13 +15,21 @@ framework.
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cloud.settings")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cloud.settings.prod")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
_application = get_wsgi_application()
def application(environ, start_response):
# copy DJANGO_* wsgi-env vars to process-env
for i in environ.keys():
if i.startswith('DJANGO_'):
os.environ[i] = environ[i]
return _application(environ, start_response)
# Apply WSGI middleware here.
# from helloworld.wsgi import HelloWorldApplication
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment