[SOLVED] NameError: name ‘playground’ is not defined

Issue

This Content is from Stack Overflow. Question asked by Android Bangla

I am beginner. I am trying to learn Django. But I face a problem. I defined app name inside my project file but django did not found it. I am using Atom as a Code Edittor. Please Any one help me..enter image description here
this is my code
path(‘playground/’,include(playground.urls))

File “C:UsersHasanDocumentsDjangoSTOREPRONTSTOREPRONTurls.py”, line 8, in
path(‘playground/’,include(playground.urls))
NameError: name ‘playground’ is not defined



Solution

You have to import playground.urls:

import playground.urls


This Question was asked in StackOverflow by Android Bangla and Answered by Lucas Grugru It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?