src/polemictweet/django_wsgi.py
author grandjoncl
Fri, 08 Feb 2013 18:00:04 +0100
changeset 1 5a91860c5535
permissions -rw-r--r--
first commit of polemictweet
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     1
import os
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     2
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     3
os.environ['DJANGO_SETTINGS_MODULE'] = 'polemictweet.settings'
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     4
 
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     5
import django.core.handlers.wsgi
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     6
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     7
application = django.core.handlers.wsgi.WSGIHandler()
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     8
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
     9
if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]:
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    10
    import pydevd #@UnresolvedImport
5a91860c5535 first commit of polemictweet
grandjoncl
parents:
diff changeset
    11
    pydevd.settrace(suspend=False)