Hadiana Sliwa
Hadiana Sliwa

Reputation: 21

ModuleNotFoundError: No module named 'learning_logs/urls'

I'm learning python, I'm reading a book called python crash course and I'm stuck somewhere, it gives this error: ModuleNotFoundError: No module named 'learning_logs/urls'

enter image description here

this is my main url file

enter image description here

and in the learning_log/url I have the following:

enter image description here

I saw many people complaining about the problem but I couldn't find a solution!

Upvotes: 0

Views: 438

Answers (1)

SLDem
SLDem

Reputation: 2182

It should be path('', include('learning_logs.urls')) with a . not a /

Upvotes: 1

Related Questions