Use request.data
instead of request.body
.
request.data
does not read the data stream again.
More Related Contents:
- django – why is the request.POST object immutable?
- 405 POST method not allowed
- django request in template
- How can I get the full/absolute URL (with domain) in Django?
- Django stops working with RuntimeError: populate() isn’t reentrant
- How to resolve “django.core.exceptions.ImproperlyConfigured: Application labels aren’t unique, duplicates: foo” in Django 1.7?
- Django 1.11 Annotating a Subquery Aggregate
- How to update an object from edit form in Django?
- selenium.common.exceptions.InvalidCookieDomainException: Message: invalid cookie domain while executing tests in Django with Selenium
- Track the number of “page views” or “hits” of an object?
- Django Static Files Development
- Django Broken pipe in Debug mode
- How to automate createsuperuser on django?
- Overriding AppConfig.ready()
- How can I call a custom Django manage.py command directly from a test driver?
- Add class to form field Django ModelForm
- “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” in django
- django dynamically filtering with q objects
- Django bulk_create with ignore rows that cause IntegrityError?
- Django CreateView: How to perform action upon save
- Django – Simple custom template tag example
- Django user profile
- AngularJS + Django Rest Framework + CORS ( CSRF Cookie not showing up in client )
- Grouped CheckboxSelectMultiple in Django template
- Django {% static ‘path’ %} in javascript file
- Byte Ranges in Django [closed]
- Django ORM: Group by and Max
- Django REST Framework image upload
- Django: dynamic database file
- User groups and permissions