Django Rest Framework debug post and put requests

Mirza Delic picture Mirza Delic · Sep 2, 2016 · Viewed 17.1k times · Source

I use DRF extension to se json list for model, and there i can debug with debug-toolbar that GET request, but how can i debug POST and PUT requests?

I have this for settings in debug mode:

INSTALLED_APPS += ('debug_toolbar',)

MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)

DEBUG_TOOLBAR_PATCH_SETTINGS = False
INTERNAL_IPS = (
    '127.0.0.1'
)

Now, when i try with Intercept redirects in debug-toolbar, it doesn't show me toolbar when i do POST.

Answer

Mirza Delic picture Mirza Delic · Sep 3, 2016

I found django-silk for debugging DRF.

https://github.com/django-silk/silk/