Closed seyikayode closed 3 years ago
settings.py is not a good place to use this as it is executed during startup of your application before any request would have been processed. There should not be any logic in your settings that depend on the current user. It should rather be in your view, your middleware, forms etc.
settings.py is not a good place to use this as it is executed during startup of your application before any request would have been processed. There should not be any logic in your settings that depend on the current user. It should rather be in your view, your middleware, forms etc.
Thanks
I am trying to get the current user in settings.py but i am getting None.