helps for duplicated query
CARocha opened this issue · 0 comments
Hi,
I have a website where in the base.html I put the title, keywords, and other configurations,
{% load solo_tag %}
doctype html
head
{% get_solo 'config.SiteConfig' as site_config %}
title
keywords
etc
/head
body
header
site_name
/header
block content
/body
/html
in the index.html I extend it from base.html
but I have an include sidebar.html and there I already have another configuration,
this is index.html
extend base
block content
include sidebar.html
/block content
in sidebar.html
{% load solo_tag %}
{% get_solo 'config.SiteConfig' as site_config %}
this causes me to debug toolbar say a 2 duplicated queries
if i erase this two line the duplicated disappears
and I understand but how can I do so that I don't have to call the solo_tag in sidebar.html?
any idea?