L
L
lemonchik372021-07-31 11:56:36
Django
lemonchik37, 2021-07-31 11:56:36

Why does python manage.py runserver give an error?

from django import urls
from django.contrib import admin
from django.urls import path, include
from django.urls import path
from learning_logs import views

app_name = 'learning_logs'
urlpatterns = [
    path('admin/', admin.site.urls),
    path('',include('learning_logs.urls')),
    path('',views.index,name = 'index'),
    path('topics/',views.topics, name='topics'),
    path('topics/<int:topic_id>/',views.topic,name = 'topic'),
]

code from folder urls.py
error:
ModuleNotFoundError: No module named 'learning_logs.urls'

the tutorial says just restart but that doesn't work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s19s93, 2021-08-02
@s19s93

Check the learning_logs module

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question