﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
13276	load and include evaluated before if	onelson	nobody	"I stumbled into this, have a work-around for my specific case, but am wondering if this is expected behavior or not.

{{{
{% if someapp %} <!-- False if someapp is not in INSTALLED_APPS, else True -->
  {% load template_tags_from_someapp %} <!-- throws uncaught exception if ""someapp"" is False -->
  {% someapp_tag_foo %}
{% endif %}
}}}

Likewise, if I separate my app specific code into yet another template:
{{{
<!-- in my view's main template -->
{% if someapp %} <!-- False if someapp is not in INSTALLED_APPS, else True -->
  {% include 'someapp_sepecific/extras.html' %}
{% endif %}
<!-- in someapp_specific/extras.html -->
{% load template_tags_from_someapp %} <!-- throws uncaught exception if ""someapp"" is False -->
{% someapp_tag_foo %}
}}}

Obviously there are many ways to skin a cat, but I'm actually hoping this is ""fixed"" at some point as it will reduce the number of views I'd have to write greatly (allowing me to lean more heavily on the generic views system)."		closed	Template system	1.2-beta		duplicate			Unreviewed	0	0	0	0	0	0
