feat: added silk(son't)

This commit is contained in:
2024-05-14 17:39:21 +02:00
parent a1f98b7121
commit efae21ee82
4 changed files with 8 additions and 8 deletions
+4
View File
@@ -51,6 +51,10 @@ DJANGO_MIDDLEWARE = [
MIDDLEWARE = DJANGO_MIDDLEWARE + PROJECT_MIDDLEWARE MIDDLEWARE = DJANGO_MIDDLEWARE + PROJECT_MIDDLEWARE
if DEBUG:
INSTALLED_APPS += ["silk"]
DJANGO_MIDDLEWARE += ["silk.middleware.SilkyMiddleware"]
ROOT_URLCONF = "config.urls" ROOT_URLCONF = "config.urls"
TEMPLATES = [ TEMPLATES = [
-6
View File
@@ -1,6 +0,0 @@
from rest_framework.test import APITestCase
class TestItWorks(APITestCase):
def test_it_works(self):
assert 1 == 1
+2 -1
View File
@@ -8,7 +8,7 @@ from django.urls import path, include
urlpatterns = [ urlpatterns = [
path("admin/", admin.site.urls), path("admin/", admin.site.urls),
path("api/v1/", include("config.api.v1.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("tpv/", include("tpv.urls", namespace="tpv")),
path("auth/", include("users.urls", namespace="users")), path("auth/", include("users.urls", namespace="users")),
] ]
@@ -16,3 +16,4 @@ urlpatterns = [
if settings.DEBUG: if settings.DEBUG:
urlpatterns.append(path("__debug__/", include(debug_toolbar.urls))) urlpatterns.append(path("__debug__/", include(debug_toolbar.urls)))
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += [path('silk/', include('silk.urls'))]
+2 -1
View File
@@ -1,5 +1,5 @@
celery==5.4.0 celery==5.4.0
django==5.0.3 django==5.0.6
django-cors-headers==3.13.0 django-cors-headers==3.13.0
django-cryptography==1.1 django-cryptography==1.1
django-debug-toolbar==3.7.0 django-debug-toolbar==3.7.0
@@ -7,6 +7,7 @@ django-extensions==3.2.0
django-filter==23.1 django-filter==23.1
django-environ==0.10.0 django-environ==0.10.0
django-watchman==1.3.0 django-watchman==1.3.0
django-silk==5.1.0
django-storages==1.13.2 django-storages==1.13.2
django-unfold==0.12.0 django-unfold==0.12.0
dj-database-url==1.0.0 dj-database-url==1.0.0