Re: Problems with first block

2010-04-27 Thread Jonathan Hayward
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 (

Re: Problems with first block

2010-04-27 Thread creecode
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

Re: Problems with first block

2010-04-27 Thread x13
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

Re: Problems with first block

2010-04-27 Thread creecode
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