#12950: urlresolvers.reverse returns '/$' when including namespaced '^$' pattern at root '^$' --------------------------------------------+------------------------------- Reporter: ungenio | Owner: nobody Status: new | Milestone: Component: Core framework | Version: 1.2-beta Keywords: urlresolvers reverse namespace | Stage: Unreviewed Has_patch: 0 | --------------------------------------------+------------------------------- In project urls.py:
{{{ incpatterns = patterns('', url(r'^$', myapp.views.index, name='index'), ) urlpatterns = patterns('', (r'^$', include(incpatterns, namespace='myapp')), ) }}} {{{ >>> reverse('myapp:index') '/$' }}} It correctly returns '/' if the included pattern isn't namespaced. -- Ticket URL: <http://code.djangoproject.com/ticket/12950> 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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.