I am using Django flatpages and would like to implement some logic in a template based on a user session variable.
eg.
{% if session.my_var %}
YES
{% else %}
NO
{% endif %}
Problem is that session object is not defined in flatpage context.
Create a
TEMPLATE_CONTEXT_PROCESSORwhich is then used by theRequestContext(see docs).