Django simple Captcha “No module named fields” error

可紊 提交于 2019-12-24 01:44:47

问题


Hi I am trying to implement Django simple capcha into my app but when i try to import from view.py "from captcha.fields import CaptchaField" i get an error "No module named fields". but i am able to import this in the django shell terminal. What else am i missing


回答1:


Did you add captcha to the INSTALLED_APPS in your settings.py?

If so, did you install it, where did you install it, and is it on your Python path?




回答2:


I encountered same problem before and I installed django-simple-captcha. It worked finally



来源:https://stackoverflow.com/questions/5895296/django-simple-captcha-no-module-named-fields-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!