Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 2023 by conditionally import django.core.handlers.modpython?

What version are you running?

What's the URL of the page containing the problem?
(none yet)

What steps will reproduce the problem?
1. rb-site install with wsgi
2. try to access reviewboard instance

What is the expected output? What do you see instead?
Expected: reviewboard interface

Actual result: "taking a nap" page, and error_log contains:

[Sat Mar 12 16:02:27 2011] [error] [client] mod_wsgi (pid=4384): Exception occurred processing WSGI script '/var/www/vhosts/review/htdocs/reviewboard.wsgi'. [Sat Mar 12 16:02:27 2011] [error] [client] Traceback (most recent call last): [Sat Mar 12 16:02:27 2011] [error] [client] File "/usr/lib/python2.6/site-packages/django/core/handlers/", line 232, in __call__ [Sat Mar 12 16:02:27 2011] [error] [client] self.load_middleware() [Sat Mar 12 16:02:27 2011] [error] [client] File "/usr/lib/python2.6/site-packages/django/core/handlers/", line 42, in load_middleware [Sat Mar 12 16:02:27 2011] [error] [client] raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e)) [Sat Mar 12 16:02:27 2011] [error] [client] ImproperlyConfigured: Error importing middleware reviewboard.admin.middleware: "No module named modpython"

What operating system are you using? What browser?
Linux, Firefox

Please provide any additional information below.
This kludge for reviewboard/admin/ helps just as fine as actually installing python-module-django-mod_python (on ALT Linux):

-from django.core.handlers.modpython import ModPythonRequest
+#from django.core.handlers.modpython import ModPythonRequest

I'd suggest making mod_python optional as per this thread:

...or add the snippet regarding the need to install a django handler to admin docs (installation).

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to