Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3643

Redirecting from DELETE to GET in Django

$
0
0

I use Django django 4.0.8 and django-tastypie.

Why is it that when I send a request (for example) DELETE http://127.0.0.1:8000/api/v1/courses/3 via Postman, I get a redirect to GET /api/v1/courses/3/?

If I send http://127.0.0.1:8000/api/v1/courses/3/ it work correctly.

Adding 'APPEND_SLASH = True' in settings.py does not resolve this problem.

String "MIDDLEWARE = ['django.middleware.common.CommonMiddleware']" I have in settings.p


Viewing all articles
Browse latest Browse all 3643

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>