mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Updated test URL patterns to use path() and re_path().
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from django.conf.urls import url
|
||||
from django.core.exceptions import PermissionDenied
|
||||
from django.template.response import TemplateResponse
|
||||
from django.test import SimpleTestCase, modify_settings, override_settings
|
||||
from django.urls import path
|
||||
|
||||
|
||||
class MiddlewareAccessingContent:
|
||||
@@ -25,7 +25,7 @@ def permission_denied_view(request):
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^$', permission_denied_view),
|
||||
path('', permission_denied_view),
|
||||
]
|
||||
|
||||
handler403 = template_response_error_handler
|
||||
|
||||
Reference in New Issue
Block a user