J
J
Juvel19882020-10-25 18:30:39
Django
Juvel1988, 2020-10-25 18:30:39

How to process urls in djnago?

I'm learning django gj from Matiz's book. I am doing the task. I adjusted the code to the current version, but..
When executing this code in the urls.py file:
from django.contrib import admin
from django.urls import path, include

urlpatterns = [
path('admin/', admin.site.urls),
path('', include(learning_logs.urls), namespace='learning_logs'),
]

PwerShell gives the following:
name 'learning_logs' is not defined

How to solve this and why is this happening?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dr. Bacon, 2020-10-25
@Juvel1988

They explicitly write to you that learning_logs is not defined, where did you get it from?

S
Sergey Gornostaev, 2020-10-25
@sergey-gornostaev

First you need to learn Python.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question