Hello,
I'm brand new to Django taking an online course in Python.
I created a project named 'django_test' and I'm in the process of creating
a very simple app named 'Hello_World'.
I'm trying to modify the urls.py file in my 'django_test' project for the
app 'hello_world'.
My code in urls.py follows:
from django.contrib import admin
from django.urls import path
urlpatterns = [
path('admin/', admin.site.urls),
path('hello_world/', include('hello_world.urls'))
]
The return error is name 'include' is not defined
I tried to import include with the statement from django.conf.urls
import include
which also failed.
Thank you for reading my post.
Larry Stevens
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com.