From 291086081e400c36e3f24c34b4349d2c2212cf94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=85=A8?= Date: Thu, 6 Jun 2019 16:50:10 +0800 Subject: [PATCH] =?UTF-8?q?v0.3.1=20=20=E6=9B=B4=E6=96=B0=E8=AF=B4?= =?UTF-8?q?=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 ++++++--- requirements.txt | 11 ++++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e7c56bc..75e4a5b 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ mutation deleteUser { ## 部署 +* mysql 5.7 / sqlite ```bash yum install python-devel mysql-devel python36-devel.x86_64 -y @@ -108,7 +109,7 @@ yum install python-devel mysql-devel python36-devel.x86_64 -y git clone https://github.com/hequan2017/seal cd seal -## django 2.2 不支持 低版本的 sqlite,如果想使用sqlite ,请根据这个博客 https://www.jianshu.com/p/cdacf4b74646 进行升级 +## django 2.2 不支持 低版本的 sqlite,如果想使用sqlite 存储数据 ,请根据这个博客 https://www.jianshu.com/p/cdacf4b74646 进行升级 python36 -m pip install -r requirements.txt python36 manage.py makemigrations @@ -125,10 +126,12 @@ nohup python36 manage.py runserver 0.0.0.0:8001 >> /tmp/http.log 2>&1 & ``` ## 异步任务 +* redis + * 扩展功能-异步1 推荐 定时任务用celery + ```bash -#需要安装redis -#启动celery异步任务 + cd seal celery -B -A seal worker -l info ``` diff --git a/requirements.txt b/requirements.txt index 6cb71f6..fc52f9e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,8 +2,8 @@ amqp==2.4.2 aniso8601==3.0.2 argh==0.26.2 backcall==0.1.0 -billiard==3.5.0.5 -celery==4.2.1 +billiard==3.6.0.0 +celery==4.3.0 certifi==2018.11.29 chardet==3.0.4 coreapi==2.3.3 @@ -17,6 +17,7 @@ django-cors-headers==2.5.2 django-crispy-forms==1.7.2 django-filter==2.1.0 django-pure-pagination==0.3.0 +django-simpleui==2.1.2.603 django-timezone-field==3.0 djangorestframework==3.9.2 dramatiq==1.5.0 @@ -31,7 +32,7 @@ ipython==6.4.0 ipython-genutils==0.2.0 itypes==1.1.0 jedi==0.12.0 -Jinja2>=2.10.1 +Jinja2==2.10.1 jsonfield==2.0.2 kombu==4.4.0 MarkupSafe==1.1.1 @@ -61,7 +62,7 @@ sqlparse==0.3.0 traitlets==4.3.2 uritemplate==3.0.0 urllib3==1.24.1 -vine==1.2.0 +vine==1.3.0 watchdog==0.8.3 watchdog-gevent==0.1.0 -wcwidth==0.1.7 \ No newline at end of file +wcwidth==0.1.7