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