Import error on render


#1

Reading the first book and on page 45 (Version 1.1 of the book) there is an import for view.py which creates an error

from django.template import render

After searching online a forum advised to use the following code which fixed the error.

from django.shortcuts import render

Has anyone experienced this error? why the above fixes it? will it cause other errors down the line?

Regards
RZ


#2

Ooh fun, I just updated that PDF and I missed that. It’s a typo. I’ll fix it and send out a notification, thanks for catching!