Re: Error: name 'include' is not defined

2023-04-02 Thread Larry Stevens
;> 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

Re: Error: name 'include' is not defined

2023-03-23 Thread Ikrombek
t; from django.contrib import admin >>>> from django.urls import path >>>> urlpatterns = [ >>>> path('admin/', admin.site.urls), >>>> path('hello_world/', include('hello_world.urls')) >>>> ] >>>> >>>>

Re: Error: name 'include' is not defined

2023-03-22 Thread Larry Stevens
dmin >>> 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 >>>

Re: Error: name 'include' is not defined

2023-03-22 Thread Robinson
llows: >> 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

Re: Error: name 'include' is not defined

2023-03-22 Thread Harouna Diallo
ls), > 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 p

Re: Error: name 'include' is not defined

2023-03-22 Thread Jeman Kumar
gt; 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

Error: name 'include' is not defined

2023-03-22 Thread Larry Stevens
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