#29068: Django urlpatterns has limit of allowed urls with namespace?
-----------------------------------+--------------------------------------
     Reporter:  Gerben Morsink     |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  Core (URLs)        |                  Version:  1.11
     Severity:  Normal             |               Resolution:  needsinfo
     Keywords:  urlpatterns limit  |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------

Comment (by Gerben Morsink):

 I have found the issue.

 I had an url of type:

 url(r'^aboutus/$', RedirectView.as_view(url=reverse('aboutus'),
 permanent=True)) in my urls.py. Where the 'aboutus' url was defined
 somewhere above in an included sub urls.py.

 With the Django testserver this works fine, but in production (Apache +
 WSGI) it gives a lot of seemingly strange errors, such as unexpected 404s
 and (after including the package silk) unexpected 500 errors. The strange
 thing was, that it did work on the test server (also Apache + WSGI), but
 not on the live server. It gave me some pulled out grey hair, so I hope
 someone finds this anwers when the need is there.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29068#comment:2>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.627c5adb0e07d0bd884dbbfab7e22e9e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to