mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Updated a test to reflect the fact that "import *" isn't used in URLconfs anymore (refs #14675).
This commit is contained in:
9
tests/urlpatterns_reverse/urls_without_handlers.py
Normal file
9
tests/urlpatterns_reverse/urls_without_handlers.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# A URLconf that doesn't define any handlerXXX.
|
||||
from django.conf.urls import url
|
||||
|
||||
from .views import bad_view, empty_view
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^test_view/$', empty_view, name="test_view"),
|
||||
url(r'^bad_view/$', bad_view, name="bad_view"),
|
||||
]
|
||||
Reference in New Issue
Block a user