2014-04-02 00:46:34 +00:00
|
|
|
from django.conf.urls import url
|
2011-06-16 16:41:14 +00:00
|
|
|
|
2014-06-03 11:30:14 +00:00
|
|
|
from . import views
|
|
|
|
|
2014-04-02 00:46:34 +00:00
|
|
|
urlpatterns = [
|
2011-06-16 16:41:14 +00:00
|
|
|
# View has erroneous import
|
2014-06-03 11:30:14 +00:00
|
|
|
url(r'erroneous_inner/$', views.erroneous_view),
|
2011-06-16 16:41:14 +00:00
|
|
|
# Module has erroneous import
|
2014-06-03 11:30:14 +00:00
|
|
|
# Remove in Django 2.0 along with erroneous_views_module as this is only
|
|
|
|
# an issue with string in urlpatterns
|
2013-02-26 12:19:18 +00:00
|
|
|
url(r'erroneous_outer/$', 'urlpatterns_reverse.erroneous_views_module.erroneous_view'),
|
2013-10-03 07:20:04 +00:00
|
|
|
# Module is an unqualified string
|
|
|
|
url(r'erroneous_unqualified/$', 'unqualified_view'),
|
2011-06-16 16:41:14 +00:00
|
|
|
# View does not exist
|
2014-06-03 11:30:14 +00:00
|
|
|
# Remove in Django 2.0 along with erroneous_views_module as this is only
|
|
|
|
# an issue with string in urlpatterns
|
2013-02-26 12:19:18 +00:00
|
|
|
url(r'missing_inner/$', 'urlpatterns_reverse.views.missing_view'),
|
2011-06-16 16:41:14 +00:00
|
|
|
# View is not callable
|
2014-06-03 11:30:14 +00:00
|
|
|
# Remove in Django 2.0 along with erroneous_views_module as this is only
|
|
|
|
# an issue with string in urlpatterns
|
2013-02-26 12:19:18 +00:00
|
|
|
url(r'uncallable/$', 'urlpatterns_reverse.views.uncallable'),
|
2011-06-16 16:41:14 +00:00
|
|
|
# Module does not exist
|
2013-02-26 12:19:18 +00:00
|
|
|
url(r'missing_outer/$', 'urlpatterns_reverse.missing_module.missing_view'),
|
2012-07-21 20:30:34 +00:00
|
|
|
# Regex contains an error (refs #6170)
|
2014-06-03 11:30:14 +00:00
|
|
|
url(r'(regex_error/$', views.empty_view),
|
2014-04-02 00:46:34 +00:00
|
|
|
]
|