Is there any function or global object by which I can access current logged-in user from anywhere in the Django project? If not, what will be the workaround?
Found this solution . After that, you have to add your new custom middleware class to MIDDLEWARE_CLASSES in the settings
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With