Skip to content

Commit

Permalink
update wsgi config/
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonthomas committed Nov 26, 2014
1 parent ab224cc commit 170b2ed
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions board/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import os
import sys

sys.path.append(os.path.dirname(__file__))
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings.board'
if 'DJANGO_SETTINGS_MODULE' not in os.environ:
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'board.local')

import django.core.handlers.wsgi
from django.core.wsgi import get_wsgi_application

application = django.core.handlers.wsgi.WSGIHandler()
application = get_wsgi_application()

0 comments on commit 170b2ed

Please sign in to comment.