580: SITE_ROOT is not working

tek****@gmai***** (Google Code) (Is this you? Claim this profile.)
Dec. 28, 2008
What's the URL of the page containing the problem?

Not public.

What steps will reproduce the problem?

1. install reviewboard into a subdirectory
2. set SITE_ROOT='/reviewboard/'

What is the expected output? What do you see instead?

- Site should work.
- Site is not working: 404 error,  ^reviewboard/  does not match requested url: reviewboard/

What operating system are you using? What browser?

OSX server, apache2, fastcgi, django alpha2, firefox 3

Please provide any additional information below.
 
Solution to the problem:

in djblets/util/rooturl.py
urlpatterns = patterns('',
#    (r'^%s' % settings.SITE_ROOT[1:], include(settings.SITE_ROOT_URLCONF)),
    (r'', include(settings.SITE_ROOT_URLCONF)),
)

I do not know the whole system enough well to tell why is it working like this.
david
#1 david
It sounds like you're doing some sort of URL rewriting in the apache server. I
suggest you just use whatever works for you; the SITE_ROOT stuff is pretty well
tested with various deployments these days.
  • +NotABug