web/ldtplatform/django_wsgi.py
author rougeronj
Tue, 25 Sep 2012 11:07:13 +0200
changeset 795 923429f142ea
parent 586 9606d6acba7e
permissions -rw-r--r--
Possibility to list a content on the front or not, with a private media. A media can be private, and the content public (listed or not)

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)