repo.or.cz
/
mygpo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix loading of conext-dependant Django middleware
[mygpo.git]
/
mygpo
/
wsgi.py
blob
c94936600dbb1b3bcf1eb89234bcd9543453022a
1
#!/usr/bin/python
2
# -*- coding: utf-8 -*-
3
4
import
os
5
6
# Set the DJANGO_SETTINGS_MODULE environment variable
7
os
.
environ
.
setdefault
(
"DJANGO_SETTINGS_MODULE"
,
"mygpo.settings"
)
8
9
from
django
.
core
.
wsgi
import
get_wsgi_application
10
11
application
=
get_wsgi_application
()