Answer the question
In order to leave comments, you need to log in
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'),
]
ModuleNotFoundError: No module named 'learning_logs.urls'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question