Fix all deprecation warnings generated by Django REST Framework during the unit tests: * ``The `base_name` argument is pending deprecation in favor of `basename`.`` (86 occurrences) * `` `detail_route` is deprecated and will be removed in 3.10 in favor of `action`, which accepts a `detail` bool. Use `@action(detail=True)` instead.`` (18 occurrences)
18 lines
481 B
Python
18 lines
481 B
Python
"""
|
|
Experimentation URLs
|
|
"""
|
|
|
|
|
|
from django.conf.urls import include, url
|
|
|
|
from experiments import routers, views, views_custom
|
|
|
|
router = routers.DefaultRouter()
|
|
router.register(r'data', views.ExperimentDataViewSet, basename='data')
|
|
router.register(r'key-value', views.ExperimentKeyValueViewSet, basename='key_value')
|
|
|
|
urlpatterns = [
|
|
url(r'^v0/custom/REV-934/', views_custom.Rev934.as_view(), name='rev_934'),
|
|
url(r'^v0/', include((router.urls, "api"), namespace='v0')),
|
|
]
|