In some places on my system, I render a page with render_to_string
, because I want to render only a small content. In these cases I do not get my variables that I created in context_processors
. Does anyone have a solution other than manually passing the variable in the render_to_string
dictionary? Thank you.
update
After a good researched I discovered that in previous versions of Django (I found in version 1.9 ) there was a parameter in the render_to_string called context_instance, where I passed the RequestContext and it already loaded the dictionary with context_processors variables. But for some reason it was removed from the new versions. I still do not have a solution to load context_processors
into render_to_string
. I really need the String containing the HTML loaded with my conditions that I use for some variables of context_processors
. So still my problem persists.