Python Forum
NameError: Name 'path' is not defined
Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NameError: Name 'path' is not defined
#8
What is the name of the app, AboutUs or abautus?
You have to use the exact name as include('app_name.urls') parameter:

# For app name AboutUs
path('aboutus/', include('AboutUs.urls')

# Or

# For app name aboutus
path('aboutus/', include('aboutus.urls')
And the file urls.py must exists inside the app's folder.
Reply


Messages In This Thread
RE: NameError: Name 'path' is not defined - by gontajones - Jun-29-2018, 02:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NameError :name 'name' is not defined Suzzy_ 4 19,059 Dec-27-2019, 09:04 AM
Last Post: LeanbridgeTech
  NameError: name 'download' is not defined ntdropper 3 11,411 Jan-13-2018, 07:18 AM
Last Post: snippsat
  NameError: name 'bsObj' is not defined Blue Dog 14 15,863 Oct-24-2016, 08:34 AM
Last Post: Blue Dog

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020