web/ldtplatform/django_wsgi.py
author ymh <ymh.work@gmail.com>
Tue, 31 Jul 2012 17:44:44 +0200
changeset 723 6fe56c8896e3
parent 586 9606d6acba7e
permissions -rw-r--r--
update virtualenv configuration to include elasticsearch elements. Elasticsearch itself still has to be installed independantly

import os

os.environ['DJANGO_SETTINGS_MODULE'] = 'ldtplatform.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)