欢迎大家来到皮爷撸码的Peekpa.com源代码。
使用终端(Terminal),并配合git clone
命令,可将源码下载到本地:
$ git clone https://github.com/SwyftG/PeekpaCom.git
查看此代码的Tag地址:
https://github.com/SwyftG/PeekpaCom/tags
这里面,Tag格式均以Post_xxx
来命名。xxx
为文章对应的编号,比如,文章《用Django全栈开发——26. 开发Dashboard功能展示页面》对应的代码,是Tag为Post_026
下面的代码。
如果你想查看某个标签所指向的文件版本,可以使用 git checkout
命令:
$ git checkout <Tag名称>
### 例如,查看文章《用Django全栈开发——26. 开发Dashboard功能展示页面》对应的代码
$ git checkout Post_026
首先需要Python3,然后使用以下命令安装项目依赖:
$ pip install -r requirement.txt
然后,本地需要安装MySQL服务,并且在Peekpa/settings.py
文件中,配置DATABASES
变量信息。
或者自己参考网上资料,更换掉系统的DATABASES
变量。
想要将代码部署到阿里云服务器,可以参考以下两篇文章:
准备服务器(内含购买服务器优惠码):
具体的部署操作:
获取更多精彩信息,请关注微信公众号『皮爷撸码』,用代码将生活变得简单。