
django开发问题
const
温故知新,月末回首
展开
-
UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa6 in position 9737:
根据提示找到 python安装路径\Lib\site-packages\django\views\debug.py ,打开后将: with Path(CURRENT_DIR, 'templates', 'technical_500.html').open() as fh:修改为 with Path(CURRENT_DIR, 'templates', 'technical_500.html').open(encoding='utf-8') as fh:...原创 2020-08-09 11:15:54 · 258 阅读 · 0 评论 -
LookupError: No installed app with label ‘admin‘.
问题:出现错误安装版本django2.2解决方法:pip install sqlparse如果上述方法还未成功,将dgango2.2 改为2.1.8原创 2020-07-28 14:28:39 · 621 阅读 · 0 评论 -
You have 17unapplied migration(s). Your project may not work properly until you apply ...
问题:在建立django的web项目时,出现的错误解决方法:python manage.py migrate它可以让我们在修改Model后可以在不影响现有数据的前提下重建表结构。原创 2020-07-28 14:25:40 · 859 阅读 · 0 评论