I have several views, and all of them work well, and all use templates that extend one basic template that displays the main HTML, header, footer, navigation and so on. Happy family.
now, I want to play with sessions on the pages, and since you cannot access the information about the user's session from the template without transferring it from the view (correct me, where I am mistaken) I have two options:
add session data to the rest of the bits that I pass as context to the HTML templates in the views (not sure if this is a good way to go)
somehow inherits all existing views from the view, which will always push the context to the templates being processed - so I donβt need to worry about anything else that I can add to my pages in the future - is this possible?
I am very new to django, and there may be another right way to do this - all your suggestions are greatly appreciated.
source share