I am trying to get a handle on how to configure django/reviewboard
under mod_python.
I want to setup reviewboard not in the root directory but a sub
directory say /reviews/
I saw the comment:

________________________________________________________________________________________
Note

If you deploy Django at a subdirectory -- that is, somewhere deeper
than "/" -- Django won't trim the URL prefix off of your URLpatterns.
So if your Apache config looks like this:

<Location "/mysite/">
    SetHandler python-program
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE mysite.settings
    PythonDebug On
</Location>

then all your URL patterns will need to start with "/mysite/". For
this reason we usually recommend deploying Django at the root of your
domain or virtual host. Alternatively, you can simply shift your URL
configuration down one level by using a shim URLconf:

urlpatterns = patterns('',
    (r'^mysite/', include('normal.root.urls')),
)
________________________________________________________________________________________

in the DJango book (ch20) but I haven't seen any other reference to
placing django apps deeper than '/'
This is my first django setup so I can only hope I'm on the right
path, anyway I have the following in my apache config:
===
        <Location "/reviews">
                SetHandler python-program
                PythonHandler django.core.handlers.modpython
                SetEnv DJANGO_SETTINGS_MODULE reviewboard.settings
                PythonPath "['/var/www', '/var/www/reviewboard' ] + sys.path"
                PythonDebug On
        </Location>
===
reviewboard.settings contains the line:

       ROOT_URLCONF = 'reviewboard.myurls'

and reviewboard.myurls conatins:

          urlpatterns = patterns('', (r'^reviews/',
include('urls')), )

which is how I interpreted the comment about a 'shim URLconf' from the
book.


Given the above config if I ask for http://10.64.9.131/reviews/ apache
tells me:

'The requested URL /dashboard/ was not found on this server.'

so the python handler is working but I have a problem with the shim
URLconf or the 'REVIEWBOARD_ROOT'

I am confident this setup it just one step away from bursting into
life, if anyone can share a little experience I'd appreciate it...

P.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to