Re: extends base.html error

2012-03-15 Thread dpbklyn
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:
>> 
>> must be the first tag in the
>> template.
>> 
>> When the code in the child template looks like this:
>> 
>>{% extends "simple/base.html" %}
>> 
>> {% block picklist %}
>> 
>>
>> 
>>Simple Index #...
>> 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.



extends base.html error

2012-03-15 Thread dpbklyn
Hello and thank you in advance...

In Django I have a child template that updates a base.html template. I
keep getting an error:

 must be the first tag in the
template.

When the code in the child template looks like this:

{% extends "simple/base.html" %}

 {% block picklist %}



Simple Index #...
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.