Django
Django开发过程中遇到的各类问题和技术点的归类总结
HDmonster_root
这个作者很懒,什么都没留下…
展开
-
You‘re using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.
错误在Linux环境下通过pytho manage.py collectstatic --settings=settings.local命令收集静态资源的时候报错django.core.exceptions.ImproperlyConfigured: You're using the staticfiles app without having set the STATIC_ROOT setting to a filesystem path.解决方法如果有多个配置文件,则在指定的settings.原创 2021-07-18 22:46:40 · 2010 阅读 · 0 评论 -
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclie
问题在开发Django过程中使用python manage.py inspectdb时报错django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module.Did you install mysqlclient?解决方法pip install pymysql然后在与项目同名的文件夹下(与settings.py文件在同一目录)的__init__.py文件中写入如下代码import pymysqlpymysql.i原创 2021-07-18 16:08:45 · 215 阅读 · 0 评论