moesif-graphene-django-example:使用Django和Graphene的示例GraphQL API

时间:2021-05-01 02:21:39
【文件属性】:
文件名称:moesif-graphene-django-example:使用Django和Graphene的示例GraphQL API
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-01 02:21:39
Python 石墨烯Django项目 该示例项目演示了Graphene和Django之间的集成。 您将构建一个事件模型以通过GraphQL访问事件对象。 首先,您需要获取项目的源代码。 通过克隆存储库来做到这一点: # Get the project code git clone https://github.com/Moesif/moesif-graphene-django-example.git 注意:使用Python时,建议使用虚拟环境,以使所有项目的依赖项与其他项目隔离。 创建您的本地环境 conda create -n graphql python=3.6 anaconda # Create the environment source activate graphql # Activate the environment 安装依赖项 pip install - r requiremen
【文件预览】:
moesif-graphene-django-example-master
----db.sqlite3(136KB)
----.gitignore(3KB)
----requirements.txt(126B)
----events()
--------__init__.py(0B)
--------views.py(63B)
--------models.py(181B)
--------apps.py(87B)
--------admin.py(63B)
--------migrations()
--------tests.py(60B)
--------schema.py(2KB)
----graphene_python()
--------urls.py(927B)
--------__init__.py(0B)
--------wsgi.py(407B)
--------settings.py(4KB)
--------schema.py(563B)
----README.md(2KB)
----users()
--------__init__.py(0B)
--------apps.py(84B)
--------schema.py(1KB)
----manage.py(547B)

网友评论