blob: 95569364e2d706b82f7e1e75156731359ca388a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
"""
WSGI config for django_skaschool project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
#os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_skaschool.settings")
# use settings_production
#from django.core.wsgi import get_wsgi_application
#application = get_wsgi_application()
os.environ["DJANGO_SETTINGS_MODULE"] = "django_skaschool.settings_production"
# handler for mod_wsgi to work with apache2 user authentication
# ref: https://docs.djangoproject.com/en/dev/howto/deployment/wsgi/apache-auth/
from django.contrib.auth.handlers.modwsgi import check_password
from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()
|