
Python
Python
bmNkotc2AECynaY6
越努力越幸运
展开
-
ModuleNotFoundError: No module named ‘execjs‘
import execjsModuleNotFoundError: No module named 'execjs'pip install PyExecJS原创 2021-12-07 10:21:14 · 3427 阅读 · 1 评论 -
Django错误集合
Django错误集合2021-021、Django.template.exceptions.TemplateSyntaxError: ‘staticfiles‘ is not a registered tag library.在setting.py中添加如下内容:'libraries': { # Adding this section should work around the issue. 'staticfiles': 'django.templatetags.static',原创 2021-02-26 12:53:36 · 1740 阅读 · 0 评论 -
解决:ModuleNotFoundError No module named ‘imagekit‘
pip uninstall imagekit pip install django-imagekit原创 2021-02-15 14:35:12 · 638 阅读 · 0 评论 -
Pycharm缓存文件太大,转移C盘中Pycharm缓存文件
转移C盘中Pycharm缓存文件问题将C盘用户目录下的.Pycharm转移到E盘文件夹下解决找到PyCharm的D:\software\pycharm_2019\PyCharm 2019.1\bin添加4个在四处红框位置处添加四行,把缓存、log、插件等文件的存储位置直接指定为你的路径...原创 2021-02-04 23:43:56 · 1960 阅读 · 0 评论 -
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.1
使用的Django版本为1.11 raise ImproperlyConfigured('mysqlclient 1.4.0 or newer is required; you have %s.' % Database.__version__)django.core.exceptions.ImproperlyConfigured: mysqlclient 1.4.0 or newer is required; you have 0.10.0.有一个好办法,直接指定版本,比其他的解决方法简单一些原创 2021-01-30 15:27:45 · 272 阅读 · 0 评论 -
django.template.exceptions.TemplateSyntaxError: ‘staticfiles‘ is not a registered tag library.
在setting.py中添加如下内容:'libraries': { # Adding this section should work around the issue. 'staticfiles': 'django.templatetags.static',},原创 2021-01-30 13:56:20 · 292 阅读 · 0 评论 -
Django报错[WinError 123] 文件名、目录名或卷标语法不正确。: <frozen importlib._bootstrap
'<frozen importlib._bootstrap当你在项目文件中删除app对应的文件却没有在项目url中删除之前配置的路径也没有删除setting中配置的app那么就会报错[WinError 123] 文件名、目录名或卷标语法不正确。: '<frozen importlib._bootstrap没有下面这个路由No module named ‘slugify’pip install slugifyNo module named bracespip install原创 2021-01-30 13:45:27 · 9722 阅读 · 1 评论