You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a custom check and I would need some informations contained in Django's request object in my check. I could not find a way to access the request nor to pass it to the plugin.
Is it possible to access the request from the plugin?
Thank you.
The text was updated successfully, but these errors were encountered:
I'm afraid it's not possible because CheckMixin that is subclassed in MainView doesn't pass the request object down to plugins run_check calls.
So the only way is to rewrite this package flow or (personally I dislike this solution) use some middleware to set currently handled request to some global variable
Hi
I'm writing a custom check and I would need some informations contained in Django's request object in my check. I could not find a way to access the request nor to pass it to the plugin.
Is it possible to access the request from the plugin?
Thank you.
The text was updated successfully, but these errors were encountered: