diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-06 17:50:14 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-06 17:50:14 +0000 |
commit | 8751ab870047dadcbc48a5e21708274e2600399e (patch) | |
tree | 4cedeac7a6035dfe5a555af14dab796c88f9fb1e /modules/apache/templates/django.wsgi | |
parent | a4e64977303b0318a83e30569271c91bf27b7fd7 (diff) | |
download | puppet-8751ab870047dadcbc48a5e21708274e2600399e.tar puppet-8751ab870047dadcbc48a5e21708274e2600399e.tar.gz puppet-8751ab870047dadcbc48a5e21708274e2600399e.tar.bz2 puppet-8751ab870047dadcbc48a5e21708274e2600399e.tar.xz puppet-8751ab870047dadcbc48a5e21708274e2600399e.zip |
- add django support with wsgi
Diffstat (limited to 'modules/apache/templates/django.wsgi')
-rw-r--r-- | modules/apache/templates/django.wsgi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/apache/templates/django.wsgi b/modules/apache/templates/django.wsgi new file mode 100644 index 00000000..c6e19101 --- /dev/null +++ b/modules/apache/templates/django.wsgi @@ -0,0 +1,9 @@ +#!/usr/bin/python +import os, sys +sys.path.append('<%= module_path %>') +os.environ['DJANGO_SETTINGS_MODULE'] = '<%= module =%>.settings' + +import django.core.handlers.wsgi + +application = django.core.handlers.wsgi.WSGIHandler() + |