On Fri, Feb 4, 2011 at 11:07 AM, Tom Evans wrote:
> On Fri, Feb 4, 2011 at 9:53 AM, Andres Lucena wrote:
>> Hi,
>>
>> In my base.html I'm trying to do this:
>>
>> {% block title %}{{title|default:"{{SITE_NAME}}"}}{%
>> endblock %}
>>
>> But I'm getting this:
>>
>> TemplateSyntaxError at /
On Fri, Feb 4, 2011 at 9:53 AM, Andres Lucena wrote:
> Hi,
>
> In my base.html I'm trying to do this:
>
> {% block title %}{{title|default:"{{SITE_NAME}}"}}{%
> endblock %}
>
> But I'm getting this:
>
> TemplateSyntaxError at /
> default requires 1 arguments, 0 provided
>
> So, SITE_NAME is
Hi,
In my base.html I'm trying to do this:
{% block title %}{{title|default:"{{SITE_NAME}}"}}{%
endblock %}
But I'm getting this:
TemplateSyntaxError at /
default requires 1 arguments, 0 provided
So, SITE_NAME is not passed to the filter.
As a workaround I did this:
{% block
3 matches
Mail list logo