首页 > 其他 > 详细

django搭建Bootstrap常用问题解决方法

时间:2015-09-18 13:51:18      阅读:126      评论:0      收藏:0      [点我收藏+]

1、进入页面,提示Creating a ModelForm without either the ‘fields‘ attribute or the ‘exclude‘时

解决方法:打开forms.py文件,修改如下:

class TestModelForm(forms.ModelForm):
    class Meta:
        model = User
        #model = Author
        fields = "__all__"

django搭建Bootstrap常用问题解决方法

原文:http://www.cnblogs.com/jinjiangongzuoshi/p/4818916.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!