always use silk

This commit is contained in:
Tao Bojlen 2018-08-27 03:11:11 +02:00
parent 4e98230e87
commit 303d762854

View file

@ -16,14 +16,12 @@ Including another URLconf
from django.urls import path, include
from rest_framework import routers
from apiv1 import views
from django.conf import settings
router = routers.DefaultRouter()
router.register(r'instances', views.InstanceViewSet)
urlpatterns = [
path(r'api/v1/', include(router.urls))
path(r'api/v1/', include(router.urls)),
path(r'silk/', include('silk.urls', namespace='silk')),
]
if settings.DEBUG:
urlpatterns += [path(r'silk/', include('silk.urls', namespace='silk'))]