mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #8725 -- Handle empty URL patterns in reverse().
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8763 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
11
tests/regressiontests/urlpatterns_reverse/extra_urls.py
Normal file
11
tests/regressiontests/urlpatterns_reverse/extra_urls.py
Normal file
@@ -0,0 +1,11 @@
|
||||
"""
|
||||
Some extra URL patterns that are included at the top level.
|
||||
"""
|
||||
|
||||
from django.conf.urls.defaults import *
|
||||
from views import empty_view
|
||||
|
||||
urlpatterns = patterns('',
|
||||
url(r'^e-places/(\d+)/$', empty_view, name='extra-places'),
|
||||
url(r'^e-people/(?P<name>\w+)/$', empty_view, name="extra-people"),
|
||||
)
|
||||
Reference in New Issue
Block a user