mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
url() -> path()
This commit is contained in:
parent
4313e772ad
commit
4c90760aef
|
@ -3,14 +3,14 @@ URLConf for test suite.
|
|||
|
||||
We need only the docs urls for DocumentationRenderer tests.
|
||||
"""
|
||||
from django.conf.urls import url
|
||||
from django.urls import path
|
||||
|
||||
from rest_framework.compat import coreapi
|
||||
from rest_framework.documentation import include_docs_urls
|
||||
|
||||
if coreapi:
|
||||
urlpatterns = [
|
||||
url(r'^docs/', include_docs_urls(title='Test Suite API')),
|
||||
path('docs/', include_docs_urls(title='Test Suite API')),
|
||||
]
|
||||
else:
|
||||
urlpatterns = []
|
||||
|
|
Loading…
Reference in New Issue
Block a user