hay Guys, i cannot seem to access request.sessions inside my inclusion template. Any ideas how i can get this data? The sessions are my own, custom ones.
my inclusion looks like
@register.inclusion_tag('base/side_bar.html', takes_context=True)
def show_side_bar(context):
models = Model.objects.all()
makes = Make.objects.all()
request = context['request']
return {
'makes':makes,
'models':models,
}
this errors out and says
Caught an exception while rendering: 'request'
and im calling this with
{% load extras %}
{% show_side_bar %}
Thanks