![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
django运行
鬼谷无心紫煞
被子忘记收了
展开
-
Unclosed tag on line 182: ‘if‘. Looking for one of: elif, else, endif.
其实就是找到错误代码的位置,收起内部函数,就可以明显看到缺少一个{% endif %},补上即可显示主页信息原创 2021-05-25 16:24:52 · 591 阅读 · 0 评论 -
ModuLeNotFoundError: No module named ‘DjangoUeditor‘
配置好DjangoUeditor之后,可以 成功迁移数据库原创 2021-05-22 15:03:08 · 764 阅读 · 0 评论 -
ModuleNotFoundError: No module named ‘MySQLdb‘
ModuleNotFoundError: No module named ‘MySQLdb’看到一个博主写的解决方法,但是我已经安装了所以还是未能及时迁移数据库,需要尽快import ueditor原创 2021-05-21 23:08:26 · 218 阅读 · 0 评论 -
Djang中迁移文件AUTH_USER_MODEL refers to model ‘users.UserProfile‘ that has not been installed
使用django自带的 AbstractUser 扩展之后,更改AUTH_USER_MODEL = 'users.UserProfile’属性后,进行数据库迁移时,出现如下报错:其实就是没有及时迁移数据库Tools——Run manage.py task——makemigrationsmigrate必要时删除migrations目录下除了_init_.py之外的文件再次执行以上命令迁移之后再次运行程序成功运行...原创 2021-05-17 18:05:51 · 1530 阅读 · 0 评论 -
迁移数据库出错 CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (
Ⅰ 报错信息CommandError: Conflicting migrations detectedCommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0002_logentry_user, 0003_logentry_add_action_flag_choices in admin).To fix them run 'python manage.py makemigr原创 2021-05-17 17:57:23 · 2526 阅读 · 0 评论 -
验证码登陆django运行报错:str has no object
配置captcha时候要先把url=百度这条注释掉就能够正常显示验证码了!原创 2021-05-15 22:46:50 · 126 阅读 · 0 评论 -
Django运行 首页无法显示图片和正常格式
如图所示,F12查看并没有发现找不到路径的问题,此时打开项目的settings文件设置静态文件路径将。。/static改为static os.path.join(BASE_DIR, 'static'),再次运行即可原创 2021-05-15 12:22:42 · 520 阅读 · 0 评论