web/hdalab/django_wsgi.py
author ymh <ymh.work@gmail.com>
Tue, 13 Mar 2012 13:55:58 +0100
changeset 160 5f6c97b58688
parent 143 60759aa76cd7
permissions -rw-r--r--
add LANGUAGE_CODE to cache key

import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'hdalab.settings'
 
import django.core.handlers.wsgi

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

if os.environ.get('PYDEV_DEBUG', "False").lower() in ["true", "1", "t"]:
    import pydevd #@UnresolvedImport
    pydevd.settrace(suspend=False)