slash append

2008-12-27 Thread strelnikovdmitrij
hi all:) I have middleware where I dynamically (request.urlconf) load urls.py for each subdomain (django application).. if I used (r'^(?P[a-zA-Z0-9-]{4,20})/$', 'user'), its work with end slash and without, but (r'^(?P[a-zA-Z0-9-]{4,20})/new/$', 'new'), works only with end slash..why? I would like

urls config and slash append

2008-12-27 Thread strelnikovdmitrij
I have middleware where I dynamically load (request.urlconf) urls.py for each subdomain (application)..if I used (r'^(?P[a-zA-Z0-9-] {4,20})/$', 'user'), its work with end slash and without, but (r'^(? P[a-zA-Z0-9-]{4,20})/new/$', 'new'), works only with end slash..why? I really dont understand wh

dynamic load urls.py problem

2008-12-27 Thread strelnikovdmitrij
hi guys...me again...but now I've done a little step forward, when I load urls file through request.urlconf it does not append end slash to any url..:( and urls without trailing slash try map through base urls.py file (ROOT_URLCONF). in new url.py file I specify urlpatterns = pattern() not +=. It