Home » Django » Python NameError: name 'include' is not defined [closed]

Python NameError: name 'include' is not defined [closed]

Posted by: admin November 30, 2017 Leave a comment

Questions:

i’m currently developing a website with the framework django (i’m very beginner) but i have a problem with python : since i have created my templates, i can’t run server anymore for this reason :
NameError: name ‘include’ is not defined
What do you think about that ?
Thank you

Answers:

Guessing on the basis of whatever little information provided in the question, i think you might have forget to add the following import in your urls.py file.

from django.conf.urls import include