On Thu, Mar 15, 2012 at 2:52 PM, dpbklyn <dpbk...@gmail.com> wrote: > YES!!! > > This was it. I had the TAG further down the page, but it was commented out > with an HTML comment. once I removed the tag altogether, the page renders > fine. Is there a way to comment out the {% TAG %}s? > > > On Mar 15, 2012, at 11:31 AM, Joel Goldstick wrote: > >> On Thu, Mar 15, 2012 at 10:39 AM, dpbklyn <dpbk...@gmail.com> wrote: >>> Hello and thank you in advance... >>> >>> In Django I have a child template that updates a base.html template. I >>> keep getting an error: >>> >>> <ExtendsNode: extends "base.html"> must be the first tag in the >>> template. >>> >>> When the code in the child template looks like this: >>> >>> {% extends "simple/base.html" %} >>> >>> {% block picklist %} >>> >>> <title></title> >>> >>> <h1>Simple Index</h1> #... >>> I dont get why I am getting this error, when the EXTENDS tag is >>> clearly the first tag. >>> >>> Both the base and the child template live in the same directory, in my >>> template path /simple. >>> >>> Thank you, >>> >>> dp >>> >>> -- >>> 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 >>> django-users+unsubscr...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/django-users?hl=en. >>> >> Can you post the exact first several lines of your template? Do you >> repeat the {% extends tag somewhere again in your template? >> >> >> -- >> Joel Goldstick >> >> -- >> 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 >> django-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/django-users?hl=en. >> > > -- > 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 > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. >
you can put comments inside {# bla bla #}. I've never done this, so why don't you try it and report back how it worked? -- Joel Goldstick -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.