环境问题
pray~
这个作者很懒,什么都没留下…
展开
-
django调试问题django.core.exceptions.ImproperlyConfigured
django项目调试子应用app时提示缺少配置1、项目的settings文件里面设置的有子app,依旧提示下面问题。django.core.exceptions.ImproperlyConfigured: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call setti原创 2021-09-24 16:02:21 · 9309 阅读 · 0 评论 -
docker 状态Removal In Progress,rm提示无法删除
docker 无法删除场景docker 进入Removal In Progress状态,无法直接删除1、docker rm -f 容器 提示文件无权限操作2、需要登录到宿主机上,执行 chattr -a xxxxx 或者 chattr -i xxxxxxxx 表示上图的文件路径3、重新删除即可...原创 2021-06-22 11:27:13 · 4510 阅读 · 0 评论 -
解决pip install时,出现locale.Error: unsupported locale setting的错误提示
在pip install时,出现locale.Error: unsupported locale setting的错误提示这里项目上线时,在aliyun服务器安装虚拟环境的时候,使用了pip install 安装,出现的问题然后,在命令行敲入locale可以看到LANGUAGEHE 和LC_ALL都是空的,而其他配置的都是utf8,也就是说本地配置的编码不一致导致的。使用命令expo...原创 2019-01-24 15:40:48 · 1419 阅读 · 0 评论 -
django连接elasticsearch失败Failed to establish a new connection: [Errno 113] No route to host[Errno 111]
做django商城项目时报错,错误信息:urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7fa6b2537390>: Failed to establish a new connection: [Errno 113] No route to host原因是因为...转载 2019-03-01 19:23:33 · 2982 阅读 · 0 评论