On Sat, Sep 20, 2008 at 12:08 AM, David Durham, Jr. <[EMAIL PROTECTED]> wrote: > > On Fri, Sep 19, 2008 at 4:07 PM, djandrow <[EMAIL PROTECTED]> wrote: >> >> I have a template, text that extend a template base. >> >> In my text template I have; >> >> {% extends 'base.html' %} >> >> {% block content %} >> >> SOME CODE >> >> {% endblock content %} > > I'm not a django expert, but I think that you don't need {% endblock > content %}, just {% endblock %}. >
That's allowed (http://docs.djangoproject.com/en/dev/topics/templates/#id1) but not used too often. >> Anyway, my question is when I enter this save it then stick it on my >> server, it adds closing tags at the bottom; </body></html> and the >> Doctype stored in base,html on the top, is this the way i'm uploading >> the files or is it sommething to do with Django, and if so is there >> anyway to stop it? > The template system works for nearly everbody else, so you must be doing something wrong. Do you have the closing tags in all files or only in base.html? If they are in all files it's no surprise that they appear twice in the final input. If you'd post your template files to dpaste or quote the relevant parts in an email, maybe someone will have further tips for you. Matthias --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---