Imperions
Imperions

Reputation: 35

ModuleNotFoundError: No module named 'articles'

I have Django code to backend. But it's not starting because of this error ModuleNotFoundError: No module named 'articles' StackOverflow people says that you don't have this folder or wrote it wrong in 2 urls.py documents. Here is the structure of my 1st project. Can't you fuys exlain me why this isn;t working? enter image description here enter image description here enter image description here enter image description here

Upvotes: 0

Views: 1407

Answers (2)

jscoba
jscoba

Reputation: 11

Also be sure to have your app in the INSTALLED_APPS list on settings.py once you have moved it to the right location.

Upvotes: 1

AyanSh
AyanSh

Reputation: 334

You have placed the files in the wrong location, your articles folder should be outside the sub myfirst folder and you should not have an app folder.

Upvotes: 1

Related Questions