#9921: request.urlconf incorrect behavoir
-------------------------------+--------------------------------------------
 Reporter:  strelnikovdmitrij  |       Owner:  nobody    
   Status:  new                |   Milestone:            
Component:  Core framework     |     Version:  1.0       
 Keywords:  request.urlconf    |       Stage:  Unreviewed
Has_patch:  0                  |  
-------------------------------+--------------------------------------------
 if dynamically load urls file through request.urlconf django will not
 append trailing slash
 so if I will have rule
 {{{
 (r'^(?P<user>[a-zA-Z0-9-]{4,20})/$', 'user')
 }}}
 , it have to call it

 {{{
 http://site.com/user/
 }}}
  only,
 {{{
 http://site.com/user
 }}}
  (wihtout slash) will not work and django will try load ROOT_URLCONF from
 settings file.
 If I will have the same rules in ROOT_URLCONF file it will work correctly.
 May be its happen due bad parsing hostname. Im using subdomains..so I have
 x.site.com - load x.urls to request.urlconf, y.site.com - load y.urls to
 request.urlconf. Prepend project name -project.x.urls doesnt solve
 problem. File is load correctly, but didnt append slash. Global append
 settings - On. Maybe bug in cache systems.
 Don't know :(
 Using latest stable 1.0.2 django, python 2.5, windows xp sp3.
 Dmitrij

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9921>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to