diff frontends/wsgi.py @ 6390:7c852cad2ca8

Add wsgi.py to frontends. Update docs.
author John Rouillard <rouilj@ieee.org>
date Mon, 26 Apr 2021 23:40:52 -0400
parents
children d32d43e4a5ba
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/frontends/wsgi.py	Mon Apr 26 23:40:52 2021 -0400
@@ -0,0 +1,16 @@
+# If you installed roundup to the system locations
+# using pip you don't need to change this
+# section. If you installed roundup in a custom
+# location, uncomment these lines and change the
+# path in the append() method to your custom path.
+#import sys
+#sys.path.append('/custom/location/where/roundup/is/installed')
+
+# Obtain the WSGI request dispatcher
+from roundup.cgi.wsgi_handler import RequestDispatcher
+
+# Set the path to tracker home.
+tracker_home = '/path/to/tracker'
+
+# Definition signature for app: app(environ, start_response):
+app =  RequestDispatcher(tracker_home)

Roundup Issue Tracker: http://roundup-tracker.org/