1👍
✅
If you want it available in your views, you can add anything you want to the request
object as that’s ultimately passed down to your views.
request.myvar = 'hello'
Source:stackexchange.com