From abc8914cc6dcdee3c01476b7016085fe193a0ae1 Mon Sep 17 00:00:00 2001 From: Luke Hatcher Date: Thu, 12 Jul 2012 01:07:31 -0400 Subject: [PATCH] modernize wsgi entry point --- symposion_project/wsgi.py | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/symposion_project/wsgi.py b/symposion_project/wsgi.py index 726e2a7b..d745282b 100644 --- a/symposion_project/wsgi.py +++ b/symposion_project/wsgi.py @@ -1,11 +1,6 @@ -from django.core.handlers.wsgi import WSGIHandler +import os -import pinax.env +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "symposion_project.settings") - -# setup the environment for Django and Pinax -pinax.env.setup_environ(__file__) - - -# set application for WSGI processing -application = WSGIHandler() \ No newline at end of file +from django.core.wsgi import get_wsgi_application +application = get_wsgi_application()