Friday, January 1, 2016

Could not parse the remainder template inheritance

Hi all,

I'm working through the masteringdjango book, and am struggling in the Templates area.

I created a base.html base template, and am attempting to include a child template.

This is the child template:

{% extends "base.html" %}

{% block title %}The current time{% endblock %}

{% block content %}
<p>It is now {{ current_date }}.</p>
{% endblock %}

When I run the site, I get the following error message: 

Could not parse the remainder: '"base.html"' from '"base.html"'


And it points to the first line of the child template.

I don't understand what I am doing wrong, please help.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/8cf9330e-3d63-484b-afdf-62a8834e0162%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment