All pastes #923258 Raw Edit

Unnamed

public text v1 · immutable
#923258 ·published 2008-02-29 12:14 UTC
rendered paste body
<Location "/py">
    SetHandler mod_python
    PythonHandler django.core.handlers.modpython
    SetEnv DJANGO_SETTINGS_MODULE lsc.settings
    PythonDebug On
    PythonPath "sys.path + ['/usr/local/django-apps/']"
</Location>

when i open http://127.0.0.1/py/ the "py" part of url is also passed
to lsc.urls... How to avoid it?

My solution is to make wrapper.py, and add there following:

from django.conf.urls.defaults import *

urlpatterns = patterns('',
    url(r'^py/',include('lsc.urls')))

but anyway i get problem in post_save_redirect and post_delete_redirect parameters
of generic views :(.

Is there a better solution?