I've just started trying to set up a ReviewBoard instance. Since
Gunicorn has the nicest Django deployment story I've seen (http://
gunicorn.org/run.html#gunicorn-django), I thought I'd set up
ReviewBoard using Gunicorn. I know it's not officially supported, but
I thought it would make for an interesting experiment.
Everything has gone smoothly up until the point where I actually try
to serve the app. Whenever I make a request, I get the following
Unable to read settings_local.py.
Please see http://www.reviewboard.org/docs/manual/dev/admin/
for help setting up Review Board.
Naturally, I looked into settings.py to see how it was trying to find
settings_local and found:
# Load local settings. This can override anything in here, but at the
# least it needs to define database connectivity.
from settings_local import *
dependency_error('Unable to read settings_local.py.')
Since settings_local.py is in the conf subdirectory of the site
directory generated by rb-site install and not in my site-packages
like the settings.py is, I assume that there is some manipulation
going on somewhere else to put it on my PYTHONPATH. Here's the output
from a test I ran to make sure it really wasn't on my PYTHONPATH:
Python 2.6.6 (r266:84292, Oct 27 2010, 15:04:49)
[GCC 4.2.1 20070719 [FreeBSD]] on freebsd8
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
freebsd8', '/usr/home/reviewboard/reviewboard/lib/python2.6/lib-tk', '/
python2.6', '/usr/local/lib/python2.6/plat-freebsd8', '/usr/local/lib/
Since Gunicorn works with WSGI, I chose Apache + WSGI during the rb-
site install process. If I look in apache-wsgi.conf, I can't see any
PYTHONPATH manipuation going on. On the other hand, if I choose Apache
+ mod_python and look at the mod_python config script, I immediately
notice the following line:
PythonPath "['/usr/home/reviewboard/reviewboard/argle/conf'] +
How does the Apache + WSGI option accomplish this? Once I understand
that, I think it will be straightforward to apply the same idea to
Want to help the Review Board project? Donate today at
Happy user? Let us know at http://www.reviewboard.org/users/
To unsubscribe from this group, send email to
For more options, visit this group at