问题
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