![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习途中Debug
励志师code
这个作者很懒,什么都没留下…
展开
-
while parsing a block mapping in “/opt/stackstorm/packs/ip_manage/actions/business_add_ip.yaml“, l
、while parsing a block mapping in "/opt/stackstorm/packs/ip_manage/actions/business_add_ip.yaml", line 14, column 7 did not find expected key原创 2022-08-08 20:41:07 · 154 阅读 · 0 评论 -
在容器中使用python-ldap模块时报错 × Building wheel for python-ldap (pyproject.toml) did not run successfully.
× Building wheel for python-ldap (pyproject.toml) did not run successfully. 报错原创 2022-08-03 14:43:19 · 3389 阅读 · 0 评论 -
在ubuntu中python安装ansible模块时报错
今天在docker的ubuntu18.04容器中安装python的ansible模块的时候报错如下 unable to execute 'x86_64-linux-gnu-gcc': No such file or directory error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- ERROR: Failed building whe原创 2022-05-09 15:27:38 · 908 阅读 · 0 评论 -
TemplateDoesNotExist的解决方法
django运行时报错,提示TemplateDoesNotExist,某个html文件不存在,当然我的html模板全部放在Templates目录中,通过错误信息可以看出,django是直接把我给的模板路径当作了绝对路径,自然找不到html文件。查看了项目setting文件后,看到了其中有关于Template的设置方法,其中包括一个‘DIRS’的选项,百度一下之后,得知需要把项目模板所在目录的路径添加到这里,代码:‘DIRS’: [os.path.join(BASE_DIR, ‘templates’)],原创 2020-09-21 23:41:01 · 1358 阅读 · 0 评论 -
Django中常遇到的错误
这条是我今晚遇到的错误,下面的是借鉴别的大佬的经验的。今晚遇到的错误是You're seeing this error because you have DEBUG = True in your Django settin于是我就把setting配置文件中的DEBUG 改成了False 但是在我改完以后又出现了CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False.这个问题于是就有了下面第四条的情况,有相同情况的小伙伴可以原创 2020-09-21 23:21:41 · 9432 阅读 · 0 评论 -
python创建django项目报错
python37django3.0.7Note that only Django core commands are listed as settings are not properly configured (error: Requested setting INSTALLED_APPS, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE原创 2020-06-17 11:16:10 · 3682 阅读 · 0 评论