{% extends baseX.html %}
Templates
index.html
/home/malikarumi/Projects/cannon/jamf/static/index.html
▶ Toggle context
None
<unknown source>
def get_parent(self, context):
parent = self.parent_name.resolve(context)
if not parent:
error_msg = "Invalid template name in 'extends' tag: %r." % parent
if self.parent_name.filters or\
isinstance(self.parent_name.var, Variable):
error_msg += " Got this from the '%s' variable." %\
self.parent_name.token
raise TemplateSyntaxError(error_msg)
if isinstance(parent, Template):
# parent is a django.template.Template
return parent
if isinstance(getattr(parent, 'template', None), Template):
# parent is a django.template.backends.django.Template
return parent.template
return self.find_template(parent, context)
On Jul 9, 2016 6:38 PM, "Malik Rumi" <malik....@gmail.com> wrote:
>
>
> Invalid template name in 'extends' tag: ''. Got this from the 'baseX.html' variable.
>
> The first line in index.html is:
> {% extends baseX.html %}
>
Try adding quotes around "baseX.html", your referring to it as a variable, not as the name of the template.
-James
--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/Wm5gJTbSD8Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXZHCechLYWnP8ewkr9H%3D0asJne7KRMQjH1OsvXyYUgPQ%40mail.gmail.com.
"Every time you see a black kid wearing a hoodie, you say: There's a thug. If you see a white kid wearing hoodie, you say: There's Mark Zuckerberg," Jones told USA TODAY last year.
"I said, 'That's because of racism. And Prince said, 'Maybe so, or maybe you civil rights guys haven't created enough Mark Zuckerbergs.' "