会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
chrisxyz
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
2023年7月9日
Django中migrate 出现问题
摘要: 问题:不小心删掉了数据库中的表格,重新迁移时出现如下问题 解决办法: 1. 在数据库中新建dashboard_piechart表 2. 运行py manage.py migrate dashboard zero 3. 运行py manage.py migrate dashboard 查看数据库,新建
阅读全文
posted @ 2023-07-09 23:22 天净沙秋思
阅读(20)
评论(0)
推荐(0)
2023年5月9日
ERRORS: auth.User.groups: (fields.E304) Reverse accessor 'Group.user_set' for 'auth.User.groups' clashes with reverse accessor for 'users.CustomUser.groups'.
摘要: 问题:删掉数据库,新建数据库一直出现上图错误。 解决方法: 在settings.py中添加 AUTH_USER_MODEL = 'users.CustomUser'
阅读全文
posted @ 2023-05-09 19:56 天净沙秋思
阅读(0)
评论(0)
推荐(0)
2023年2月24日
501, b'Mail from address must be same as authorization user.', 'webmaster@localhost'
摘要: 问题:重置密码时出错 SMTPSenderRefused at /users/password_reset/ (501, b'Mail from address must be same as authorization user.', 'webmaster@localhost') 解决方案: EM
阅读全文
posted @ 2023-02-24 20:46 天净沙秋思
阅读(209)
评论(0)
推荐(0)
2023年2月22日
Django通过QQ邮箱发送邮件
摘要: 1. 开启POP3/SMTP,获得EMAIL_HOST_PASSWORD。 2. 在setting.py中添加代码 EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = 'smtp.qq.com' EMA
阅读全文
posted @ 2023-02-22 20:59 天净沙秋思
阅读(82)
评论(0)
推荐(0)
django.template.exceptions.TemplateDoesNotExist: bootstrap4/uni_form.html
摘要: 问题:在使用django-crispy-forms时,跳转到signup页面出错 django.template.exceptions.TemplateDoesNotExist: bootstrap4/uni_form.html 解决方法: 使用bootstrap5 1. 安装crispy-boot
阅读全文
posted @ 2023-02-22 20:19 天净沙秋思
阅读(328)
评论(0)
推荐(0)
上一页
1
2
3
4
5
公告