
Python
ml_Better
iOS开发
展开
-
修复django_channels_presence报错 Cannot import ‘rooms‘问题
踩坑记录:安装pip install django-channels-presence 使用时,报错如下:raise ImproperlyConfigured(django.core.exceptions.ImproperlyConfigured: Cannot import 'rooms'. Check that 'channels_presence.apps.RoomsConfig.name' is correct.解决方案:1,查看当前Django版本:pip freezeDjango原创 2021-04-19 18:49:38 · 765 阅读 · 0 评论 -
解决mysqlclient 1.4.0 or newer is required; you have 0.10.1问题
执行python manage.py makemigrations生成数据库迁移文件时,报错: 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原创 2021-03-06 12:58:03 · 12003 阅读 · 0 评论 -
Couldn‘t import Django问题修复记录
执行python manage.py runserver 报错Traceback (most recent call last): File "manage.py", line 22, in <module> main() File "manage.py", line 13, in main raise ImportError(ImportError: Couldn't import Django. Are you sure it's installed and av原创 2021-03-04 18:20:22 · 1229 阅读 · 6 评论 -
Mac 执行命令source bash_profile报错问题修复
Mac 执行命令source ~/.bash_profile 报错:/Applications/Xcode.app/Contents/Developer/usr/bin/python3: Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No module named 'virtualenvwrapper')virtualenvwrapper.sh: The原创 2021-03-02 10:53:52 · 855 阅读 · 0 评论