feat: added silk(son't)
This commit is contained in:
@@ -51,6 +51,10 @@ DJANGO_MIDDLEWARE = [
|
||||
|
||||
MIDDLEWARE = DJANGO_MIDDLEWARE + PROJECT_MIDDLEWARE
|
||||
|
||||
if DEBUG:
|
||||
INSTALLED_APPS += ["silk"]
|
||||
DJANGO_MIDDLEWARE += ["silk.middleware.SilkyMiddleware"]
|
||||
|
||||
ROOT_URLCONF = "config.urls"
|
||||
|
||||
TEMPLATES = [
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
from rest_framework.test import APITestCase
|
||||
|
||||
|
||||
class TestItWorks(APITestCase):
|
||||
def test_it_works(self):
|
||||
assert 1 == 1
|
||||
+2
-1
@@ -8,7 +8,7 @@ from django.urls import path, include
|
||||
urlpatterns = [
|
||||
path("admin/", admin.site.urls),
|
||||
path("api/v1/", include("config.api.v1.urls")),
|
||||
path("watchman", include("watchman.urls")),
|
||||
path("watchman/", include("watchman.urls")),
|
||||
path("tpv/", include("tpv.urls", namespace="tpv")),
|
||||
path("auth/", include("users.urls", namespace="users")),
|
||||
]
|
||||
@@ -16,3 +16,4 @@ urlpatterns = [
|
||||
if settings.DEBUG:
|
||||
urlpatterns.append(path("__debug__/", include(debug_toolbar.urls)))
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
urlpatterns += [path('silk/', include('silk.urls'))]
|
||||
|
||||
Reference in New Issue
Block a user