1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# remenber to set those in envvars in debian or /etc/sysconfig/httpd in centos
#LANG='en_US.UTF-8'
#LC_ALL='en_US.UTF-8'
import os
import autoradio.settings
import autoradio.autoradio_config
#os.environ['DJANGO_SETTINGS_MODULE'] = 'autoradio.settings'
#import django.core.handlers.wsgi
#application = django.core.handlers.wsgi.WSGIHandler()
## from django 1.4
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "autoradio.settings")
## This application object is used by the development server
## as well as any WSGI server configured to use this file.
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
|