community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r982030 - /comdev/nearby_people/run.wsgi
Date Tue, 03 Aug 2010 20:40:55 GMT
Author: nick
Date: Tue Aug  3 20:40:55 2010
New Revision: 982030

URL: http://svn.apache.org/viewvc?rev=982030&view=rev
Log:
Add example wsgi file, for anyone running their own  copy

Added:
    comdev/nearby_people/run.wsgi   (with props)

Added: comdev/nearby_people/run.wsgi
URL: http://svn.apache.org/viewvc/comdev/nearby_people/run.wsgi?rev=982030&view=auto
==============================================================================
--- comdev/nearby_people/run.wsgi (added)
+++ comdev/nearby_people/run.wsgi Tue Aug  3 20:40:55 2010
@@ -0,0 +1,14 @@
+import sys, os
+
+# The path needs to contain the installed directory (i.e. the directory with
+#  this file in it), the parent of the installed directory, wherever your
+#  Django install is, plus the system path
+# This line is just an example
+sys.path = [ '/var/python_apps/', '/var/python_apps/nearby_people/', '/var/python_apps/django-1.0',
'/var/python/lib/python2.4' ] + sys.path
+
+# Tell the Django WSGI handler which settings file to bootstap from
+os.environ["DJANGO_SETTINGS_MODULE"] = "nearby_people.settings"
+
+# Off we go!
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()

Propchange: comdev/nearby_people/run.wsgi
------------------------------------------------------------------------------
    svn:executable = *



Mime
View raw message