django-rest-framework/tests/browsable_api/no_auth_urls.py
Adam Johnson 410575dace
Replace all url() calls with path() or re_path() (#7512)
* url() is deprecated in Django 3.1

* update given feedbacks on url() is deprecated in Django 3.1

* Fix test_urlpatterns.py to continue testing mixed re_path() and path()

* Fix one missed reference

Co-authored-by: sanjusci <sanju.sci9@gmail.com>
2020-09-08 15:32:27 +01:00

8 lines
111 B
Python

from django.urls import path
from .views import MockView
urlpatterns = [
path('', MockView.as_view()),
]