Thank you, x13 and creecode!
On Tue, Apr 27, 2010 at 2:04 PM, x13 wrote:
>
> Did you read the tutorial?
> http://docs.djangoproject.com/en/1.1/topics/templates/#topics-templates
>
> Seems to be a syntax problem
>
> It's not
>
> {{ block dtd }} ... {{ endblock dtd }}
>
> the properly syntax (
It is OK to include the name of the block in the endblock tag ( search
for 'For extra readability' in <
http://docs.djangoproject.com/en/dev/topics/templates/#template-inheritance
>). It is optional and I find it useful when working with longer
blocks.
Toodle-looo.
creecode
Did you read the tutorial?
http://docs.djangoproject.com/en/1.1/topics/templates/#topics-templates
Seems to be a syntax problem
It's not
{{ block dtd }} ... {{ endblock dtd }}
the properly syntax (for last Django version) would be:
{% block dtd %} ... {% endblock %}
Notice you shoul
Hello Jonathan,
Use {% block dtd %} instead of {{ block dtd }}.
{{ }} are for accessing variables <
http://docs.djangoproject.com/en/dev/topics/templates/#variables
>.
{% %} are for tags < http://docs.djangoproject.com/en/dev/topics/templates/#tags
>.
Toodle-loo...
creecode
On
4 matches
Mail list logo