If it needs to be done on specific endpoints, write a custom decorator method for that endpoint.
If it needs to be done on every request, write custom middleware.
On Mon, Feb 1, 2021, 1:51 PM Ammar Mohammed <amarben1000@gmail.com> wrote:
Hi everyone i have an API View inherited from another classi want to create a new app that reciver the current Client requests and process it then pass it to the original View(all i want to do is to recive the view from the user (the user will use the original urls without any edit in the clients) then i want to add some value to one of the request variables and redirect it to the original APIView)--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/c8b3c72e-6664-4aff-b427-69d2933b3ec5n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAMKMUjsmJ-nvvumj%3DMdpRgTGfGs8%2BsrS8%2B3cRsCMhY7waxDw8A%40mail.gmail.com.
No comments:
Post a Comment