jazzband / django-silk

Silky smooth profiling for Django
MIT License
4.35k stars 333 forks source link

Silk Profiler No Silk profiling was performed for this request. Use the silk_profile decorator/context manager to do so. #624

Closed timurchikk closed 1 year ago

timurchikk commented 1 year ago

MIDDLEWARE = BASE_MIDDLEWARE + [ "silk.middleware.SilkyMiddleware" ]

SILKY_PYTHON_PROFILER = True

I have a decorator silk_profile() on views, but i getting that issue

SebCorbin commented 1 year ago

Please provide the code where you use @silk_profile() or with silk_profile():

timurchikk commented 1 year ago

@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)

timurchikk commented 1 year ago

version of django-silk==4.2.0 django==2..2.12

SebCorbin commented 1 year ago

Then I don't see why it would not work, could you check:

timurchikk commented 1 year ago

Thanks, problem was on installed apps, i changed "silk.apps.SilkConfig" to "silk"

SebCorbin commented 1 year ago

Closely related to https://github.com/jazzband/django-silk/issues/269