Hi, I am working on one django project and recently i had the requirement for a middleware. But i don't want this middleware to hook to every url served by the whole project but instead, only to one of the apps. I tried to look on the internet but everywhere there are hacks to implement it but not a in-built support from django. So i was curious why django doesn't provide support for app specific middleware or if it does then why there isn't any neat documentation about it. Thanks
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/1b8a2339-50fd-4b81-973f-9474787e3c6e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On 7 Jul 2019, at 17:42, Kapil Garg <kapilg...@gmail.com> wrote:
Hi, I am working on one django project and recently i had the requirement for a middleware. But i don't want this middleware to hook to every url served by the whole project but instead, only to one of the apps. I tried to look on the internet but everywhere there are hacks to implement it but not a in-built support from django. So i was curious why django doesn't provide support for app specific middleware or if it does then why there isn't any neat documentation about it. Thanks
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/DEB7E81B-0043-4754-9D23-A6A234F9BCC6%40polytechnique.org.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAMyDDM3-B49mPzRT_d2bGU-6MOxiJ%3DAt%2BqYaR0ifgAEhOQiFzQ%40mail.gmail.com.