Re: How to set (global) context value from a templatetag?

2019-07-28 Thread James Schneider
> > > > from django.template import RequestContext; rc = RequestContext(request) > > > rc contains all the context that had been passed on to TemplateResponse > within the view, o I want to add few more there from the template tag and > just cant figure out how. > > Thanks a lot for any ideas! >

How to set (global) context value from a templatetag?

2019-07-28 Thread toinbis
Hi, I wonder how would I access context and set the key/value pair from within custom template tag? Later on I want to access context object in djang-debug-toolbar panel with from django.template import RequestContext; rc = RequestContext(request) rc contains all the context that had been