fnp
/
cas.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated link on profile page
[cas.git]
/
cas.wsgi.template
diff --git
a/cas.wsgi.template
b/cas.wsgi.template
index
2124c1e
..
d8c87da
100644
(file)
--- a/
cas.wsgi.template
+++ b/
cas.wsgi.template
@@
-1,6
+1,6
@@
-#!
%(python)s
+#!
$PYTHON
import site
import site
-site.addsitedir('
%(path)s/lib/python2.5/site-packages
')
+site.addsitedir('
$PYTHON_SITE
')
import os
from os.path import abspath, dirname, join
import os
from os.path import abspath, dirname, join
@@
-12,13
+12,12
@@
sys.stdout = sys.stderr
# Add apps and lib directories to PYTHONPATH
sys.path = [
# Add apps and lib directories to PYTHONPATH
sys.path = [
- '%(path)s/releases/current/%(project_name)s',
- '%(path)s/releases/current/provider',
- '%(path)s/releases/current',
+ '$PROJECT_ROOT/src',
+ '$PROJECT_ROOT/provider',
] + sys.path
# Run Django
] + sys.path
# Run Django
-os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+os.environ['DJANGO_SETTINGS_MODULE'] = '
$PROJECT_NAME.
settings'
from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()
from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()