[Fixed]-Using django message framework with rest_framework

30👍

DRF views do not use HttpRequest but use rest_framework.request.Request, (read here) you can access to the object that you need using

 messages.success(request._request, 'Success')

anyway this code have sense only if you are using BrowsableAPIRenderer

👤sax

Leave a comment