From 42e1652acd8257788e0a8d67701434dea2d8a05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=85=A8?= Date: Mon, 3 Jun 2019 11:32:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 23 +++++++++++++---------- requirements.txt | 2 +- seal/__init__.py | 5 +++++ 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 0564326..161697a 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ > 支持 RESTful 和 GraphQL -> vue 前端地址 https://github.com/hequan2017/seal-vue 持续开发中 +> vue 前端地址 持续开发中 > 作者会在周末进行开发、更新。 @@ -47,7 +47,7 @@ ## GraphQL > 具体代码 请参考 seal/schema.py -> 请求地址 : http://localhost/graphql +> 请求地址 : > GraphQL 请求参数 ``` @@ -99,13 +99,16 @@ yum install python-devel mysql-devel -y git clone https://github.com/hequan2017/seal cd seal -python install -r requirements.txt -python manage.py makemigrations -python manage.py migrate -python manage.py createsuperuser -python manage.py runserver 0.0.0.0:80 + +python36 -m pip install -r requirements.txt +python36 manage.py makemigrations +python36 manage.py migrate +python36 manage.py createsuperuser + + +python36 manage.py runserver 0.0.0.0:80 ``` @@ -144,9 +147,9 @@ for i in Users.objects.all(): ## 售后服务 -* bootstrap4 中文文档 https://code.z01.com/v4/ -* cbv 中文文档 http://ccbv.co.uk/projects/Django/2.1/django.views.generic.edit/ -* GraphQL 中文参考文档 https://passwo.gitbook.io/graphql/index/drf +* bootstrap4 中文文档 +* cbv 中文文档 +* GraphQL 中文参考文档 ### 其他 * 有问题 可以加QQ群: 620176501 django开发讨论群 diff --git a/requirements.txt b/requirements.txt index fccd57e..83d8995 100644 --- a/requirements.txt +++ b/requirements.txt @@ -35,7 +35,7 @@ Jinja2>=2.10.1 jsonfield==2.0.2 kombu==4.4.0 MarkupSafe==1.1.1 -mysqlclient==1.4.2.post1 +pymysql openapi-codec==1.3.2 parso==0.2.1 pathtools==0.1.2 diff --git a/seal/__init__.py b/seal/__init__.py index 3e7bf86..f739536 100644 --- a/seal/__init__.py +++ b/seal/__init__.py @@ -1,4 +1,9 @@ from .celery import app as celery_app + +import pymysql +pymysql.install_as_MySQLdb() + + __all__ = ['celery_app']