Closed timurchikk closed 1 year ago
Please provide the code where you use @silk_profile()
or with silk_profile():
@silk_profile(name="View Get Basket") def get(self, request, format=None): basket = operations.get_basket(request) ser = self.serializer_class(basket, context={"request": request}) return Response(ser.data)
version of django-silk==4.2.0 django==2..2.12
Then I don't see why it would not work, could you check:
MIDDLEWARE
effectively contains silk.middleware.SilkyMiddleware
at runtimeSILKY_PYTHON_PROFILER
is effectively set to true at runtimesilk
is in INSTALLED_APPSThanks, problem was on installed apps, i changed "silk.apps.SilkConfig" to "silk"
Closely related to https://github.com/jazzband/django-silk/issues/269
MIDDLEWARE = BASE_MIDDLEWARE + [ "silk.middleware.SilkyMiddleware" ]
SILKY_PYTHON_PROFILER = True
I have a decorator silk_profile() on views, but i getting that issue