无聊的IT

导航

2018年1月18日 #

django调用py报错 django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured.

摘要: 完整报错信息如下 django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must either def 阅读全文

posted @ 2018-01-18 14:14 秦寒 阅读(1843) 评论(0) 推荐(0) 编辑

Django继承AbstractUser新建User Model时出现fields.E304错误

摘要: 错误内容如下 ERRORS: audit.UserProfile.groups: (fields.E304) Reverse accessor for 'UserProfile.groups' clashes with reverse accessor for 'User.groups'. HINT 阅读全文

posted @ 2018-01-18 10:15 秦寒 阅读(813) 评论(0) 推荐(0) 编辑

2018年1月12日 #

celery 4.1下报kombu.exceptions.EncodeError: Object of type 'bytes' is not JSON serializable 处理方式

摘要: #python代码如下 from celery import Celeryimport subprocess app = Celery('tasks', broker='redis://localhost', backend='redis://localhost') @app.taskdef add 阅读全文

posted @ 2018-01-12 10:37 秦寒 阅读(7256) 评论(1) 推荐(0) 编辑

2018年1月11日 #

centos 7 安装 python3.6 python3 安装步骤以及pip pip3安装挂载

摘要: 首先去python官网下载python3的源码包,网址:https://www.python.org/ 或者直接wget下载 wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz #安装python时可能需要依赖包,安装之前最好先 阅读全文

posted @ 2018-01-11 10:32 秦寒 阅读(3087) 评论(0) 推荐(0) 编辑