Django Views Does Not Exist Or Could Not Import
Solution 1:
Try doing a
python ./manage.py shell
and then importing the view that is giving you the problem. That might end up giving you more useful debugging information.
> from ism.viewsimport index
Solution 2:
It happened to me, eventually the problem was I had a syntax error in one of the forms in forms.py, and I imported this form into my views.py file. Django error message still pointed me to view does not exist error
Solution 3:
I had the same error for the same reason. Typo in another file that was imported by the one reported in the error. Revealed by importing manually into the shell.
Thanks kdazzle!
--Fred Stluka
Solution 4:
I managed to solve the problem by opening the view file in vim and saving without any change.
Solution 5:
Same problem.
My shell was not working too.
I saw the link that Jimenez posted, and at the end of discussion the guy solved the problem saving the file using Vim.
I rewrited the file using Vim and it worked!
Try it if your was not solved yet!
Post a Comment for "Django Views Does Not Exist Or Could Not Import"