Skip to content
Advertisement

ModuleNotFoundError: No module named ‘forms’

New to django, I am trying to understand this error. The forms is in the folder of the project. My forms.py is importing from django forms.

JavaScript

My views.py is importing LoginForm

I don’t know why I am getting this error?

Thanks

Advertisement

Answer

It sounds like it should be working, you might want to post the full error and more of your code. Something like this should be working

JavaScript

and the views

JavaScript

where you have a folder structure like

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement