;> 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
t; from django.contrib import admin
>>>> from django.urls import path
>>>> urlpatterns = [
>>>> path('admin/', admin.site.urls),
>>>> path('hello_world/', include('hello_world.urls'))
>>>> ]
>>>>
>>>>
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
>>>
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
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
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
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
7 matches
Mail list logo