/的ImportError
没有名为form的模块
请求方法:GET请求URL:http://127.0.0.1:8000/ Django版本:1.6.11异常类型:ImportError异常值:
没有名为form的模块
异常位置:/home/zaheer/django-user/login/myapp/views.py in,第11行Python可执行文件:/ usr / bin / python Python版本:2.7.6 Python路径:
['/ home / zaheer / django-user / login','/ usr / local / lib / python2.7 / did-package / virtualenv-15.1.0-py2.7.egg','/ usr / lib / python2 .7','/ usr / lib / python2.7 / plat-x86_64-linux_gnu','/ usr / lib / python2.7 / lib -tk','/ usr / lib / python2.7 / lib- old','/ usr / lib / python2.7 / lib-dadload','/ usr / local / lib / python2.7 / dad-package','/ usr / lib / python2.7 / dad-package', '/usr/lib/python2.7/dist-packages/PILcompat','/ usr / lib / python2.7 / did-package / gtk-2.0','/ usr / lib / python2.7 / record-package /的ubuntu-SSO-客户']
服务器时间:2017年2月10日星期五12:11:20 0000
1 回答
看起来您正在尝试导入名为“forms”的模块,您要么没有安装,要么不存在 .
尝试从代码顶部删除
import forms
.我没有使用Django的经验,但快速搜索会带来一个forms API,它可以做你想要的 .