Most of my views make use of a small dictionary that I load into the session in my “Home” view, ideally that is the first view my users visit, and all other views find it using the “request” first argument.
But users are smart, they strive for maximum time efficiency, some of them bookmark their preferred view and jump across the “Home” view so they don’t waste time; result, they get the “Error 500”, because the key is not in the session, and are not happy.
What should I do now? Re/load this dict at the start of views?
Write a decorator for all views that does just that? Looks like overkill.
Is it somewhere in django a place where I can shove this table into the session and confound the tricksters? Or is there something I may write in settings.py to the same effect?
Thank you!