03 2020 档案
摘要:```python这个问题在Python3.6有时候会出现,说明是源码有bug这一块Your STATICFILES_DIRS setting is not a tuple or list; "ImproperlyConfigured: Your STATICFILES_DIRS setting is not a tuple or list; perhaps you forgot a traili...
阅读全文
摘要:```python【部署问题】解决Nginx: [error] open() "/usr/local/Nginx/logs/Nginx.pid" failed(2:No such file or directory)解决方法:终端上直接输入下面这一句话执行命令就可以了,个人验证,亲测有效/usr/local/nginx/sbin/nginx -c /usr/local/nginx/conf/ngi...
阅读全文
摘要:```python git add . 的时候遇到warning: LF will be replaced by CRLF in ...... 解决办法 输 入 git add . 后出现 warning: LF will be replaced by CRLF in ...... The file will have its original line endings in your worki
阅读全文
摘要:```python 运行环境 PyCharm 2017.1 Django 2.0.1 python 3.6.1 使用相对路径引用Models模块 from .models import * 1 在同时存在多个apps的情况下,有机会报错 RuntimeError: Model class app_anme.models.Ad doesn't declare an explicit app_labe
阅读全文
摘要:报错信息: django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module. Did you install mysqlclient? 解决方式: 在settings.py配置文件中,添加pymysql的配置, im
阅读全文