1 Star 0 Fork 0

houzhj / pyleancloud

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Django-getting-started

一个简单的使用 Django 的 Python 应用。 可以运行在 LeanEngine Python 运行时环境。

一键部署

Deploy to LeanEngine

本地运行

首先确认本机已经安装 Python 运行环境和 LeanCloud 命令行工具,然后执行下列指令:

$ git clone git@github.com:leancloud/django-getting-started.git
$ cd django-getting-started

安装依赖:

pip install -r requirements.txt

修改 settings.py:

修改 settings.py 中的 SECRET_KEY 值,确保它是一个足够长度的随机字符串,并且没有被其他人获知。详情参考这里

修改 settings.py 中的 ALLOWED_HOSTS 值,确保它是包含你即将部署的云引擎应用的域名的 list(本地调试期间可以暂时忽略)。详情参考这里

关联应用:

lean switch

启动项目:

lean up

应用即可启动运行:localhost:3000

部署到 LeanEngine

部署到预备环境(若无预备环境则直接部署到生产环境):

lean deploy

将预备环境的代码发布到生产环境:

lean publish

相关文档

MIT License Copyright (c) 2016 LeanCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

开发可以部署在leancloud的云引擎 源码 使用python Django框架 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/houzhj/pyleancloud.git
git@gitee.com:houzhj/pyleancloud.git
houzhj
pyleancloud
pyleancloud
master

搜索帮助