mdn/django-locallibrary-tutorial

Template syntax error : Book instance "Renew"

nameisnot opened this issue · 1 comments

I have been going through the tutorials on https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/Tutorial_local_library_website.

Up until the Part 9 ("Working with forms") the app had been working as explained in the tutorials. But after created the functionality of "Renew" in the "All Borrowed Books" book lists, I have been getting the subject error.

Error text:

TemplateSyntaxError at /catalog/book/38c0acbc-04eb-4297-b531-66dd3177c29e/renew/

<Could not parse the remainder: '"base_generic.html' from '"base_generic.html'>

Request Method: 	GET
Request URL: 	http://127.0.0.1:8000/catalog/book/38c0acbc-04eb-4297-b531-66dd3177c29e/renew/
Django Version: 	2.0.6
Exception Type: 	TemplateSyntaxError
Exception Value: 	

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

Exception Location: 	/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/django/template/base.py in __init__, line 668
Python Executable: 	/Library/Frameworks/Python.framework/Versions/3.6/bin/python3
Python Version: 	3.6.4
Python Path: 	

['/Users/**********/******/******/******/myLibrary/locallibrary',

'/Library/Frameworks/Python.framework/Versions/3.6/lib/python36.zip',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/lib-dynload',
'/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages']

I have gone thru' the related codes all over again (including tried "copy-pasting" codes from both the tutorial as well as the Github pages here) but every time I get the same error.

Grateful for a lead on this.
Thanks

Sorry to be the party-pooper 😊

After posting the issue, realized the mistake (which was, really, as clear as the winter sky!!).

I had forgotten to add the "closing" quote in the declaration of the base template.

Closing the issue.