mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-18 06:06:53 +03:00
410575dace
* 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>
17 lines
356 B
Python
17 lines
356 B
Python
"""
|
|
URLConf for test suite.
|
|
|
|
We need only the docs urls for DocumentationRenderer tests.
|
|
"""
|
|
from django.urls import path
|
|
|
|
from rest_framework.compat import coreapi
|
|
from rest_framework.documentation import include_docs_urls
|
|
|
|
if coreapi:
|
|
urlpatterns = [
|
|
path('docs/', include_docs_urls(title='Test Suite API')),
|
|
]
|
|
else:
|
|
urlpatterns = []
|