![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
chenmike1
生活如此多娇
展开
-
运行django报错doesn't declare an explicit app_label and isn't in an application in INSTALL_APPS
运行django服务时提示,XXX doesn't declare an explicit app_label and isn't in an application in INSTALL_APPS原因:因为我在settings文件中添加了一行搜索路径 ,而使用pycharm自动引入时的路径并不正确#apps为子应用目录sys.path.insert(0,os.path....原创 2019-04-21 08:58:25 · 7803 阅读 · 0 评论 -
celery ModuleNotFoundError: No module named XXX
解决方法:将celery的包移动至项目目录下,与项目同名文件夹同级.├── celery_tasks│ ├── __init__.py│ ├── __pycache__│ │ ├── __init__.cpython-37.pyc│ │ ├── config.cpython-37.pyc│ │ └── main.cpython-37.pyc...原创 2019-04-21 21:05:37 · 5856 阅读 · 4 评论 -
python3.7&Django1.11.11兼容性问题
环境:>Django1.11.11>python3.7启动django时抛出如下异常:Unhandled exception in thread started by <function check_errors.<locals>.wrapper at 0x102ae59d8>Traceback (most recent call last...转载 2019-04-18 15:00:01 · 1790 阅读 · 1 评论 -
同一台主机时cors跨域中间件失效时的解决方法
同一台主机时,如果cors跨域中间件失效,可以尝试关闭防火墙原创 2019-07-09 09:06:16 · 781 阅读 · 0 评论