Please. Look at file htdocs/reviewboard.wsgi (I hope this is correct
name) file inside directory tree of Your Review Board instance. This
is our reviewboard wsgi script so maybe modification will solve Your
problem.

On Thu, Oct 28, 2010 at 10:13 PM, Hank <hank....@gmail.com> wrote:
> Hi All.
>
> 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
> error:
>
> 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
> very
> # least it needs to define database connectivity.
> try:
>    import settings_local
>    from settings_local import *
> except ImportError:
>    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
> 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
>>>> sys.path
> ['', '/usr/home/reviewboard/reviewboard/lib/python2.6/site-packages/
> distribute-0.6.14-py2.6.egg', '/usr/home/reviewboard/reviewboard/lib/
> python2.6/site-packages/pip-0.8.1-py2.6.egg', '/usr/home/reviewboard/
> reviewboard/lib/python26.zip', '/usr/home/reviewboard/reviewboard/lib/
> python2.6', '/usr/home/reviewboard/reviewboard/lib/python2.6/plat-
> freebsd8', '/usr/home/reviewboard/reviewboard/lib/python2.6/lib-tk', '/
> usr/home/reviewboard/reviewboard/lib/python2.6/lib-old', '/usr/home/
> reviewboard/reviewboard/lib/python2.6/lib-dynload', '/usr/local/lib/
> python2.6', '/usr/local/lib/python2.6/plat-freebsd8', '/usr/local/lib/
> python2.6/lib-tk', '/usr/home/reviewboard/reviewboard/lib/python2.6/
> site-packages', '/usr/home/reviewboard/reviewboard/lib/python2.6/site-
> packages/PIL']
>
> 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'] +
> sys.path"
>
> How does the Apache + WSGI option accomplish this? Once I understand
> that, I think it will be straightforward to apply the same idea to
> Gunicorn.
>
> Thanks,
>
> Hank
>
> --
> Want to help the Review Board project? Donate today at 
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to 
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en



-- 
><> Jan Koprowski

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to