# pythonzh.cn
为 Python 交流学习搭建的社区,使用 django1.10 和 Python3.5 强力驱动。
## 网站地址:
http://pythonzh.cn
## 在本地运行项目
1. 克隆项目到本地
打开命令行,进入到保存项目的文件夹,输入如下命令:
```
git clone https://github.com/zmrenwu/pythonzh.cn.git
```
2. 创建并激活虚拟环境
在命令行进入到保存虚拟环境的文件夹,输入如下命令创建并激活虚拟环境:
```
virtualenv pythonzhcn_env
# windows
pythonzhcn_env\Scripts\activate
# linux
source pythonzhcn_env/bin/activate
```
3. 安装项目依赖
如果使用了虚拟环境,确保激活并进入了虚拟环境,在命令行进入项目所在的 pythonzh.cn 文件夹,运行如下命令:
```
pip install -r requirements/base.txt
```
4. 迁移数据库
在上一步所在的位置运行如下命令迁移数据库:
```
python manage.py migrate
```
5. 创建后台管理员账户
在上一步所在的位置运行如下命令创建后台管理员账户
```
python manage.py createsuperuser
```
6. 运行开发服务器
在上一步所在的位置运行如下命令开启开发服务器:
```
python manage.py runserver --settings=config.settings.local
```
在浏览器输入:127.0.0.1:8000
7. 进入后台
在浏览器输入:127.0.0.1:8000/admin
使用第 5 步创建的后台管理员账户登录
没有合适的资源?快使用搜索试试~ 我知道了~
为 Python 交流学习搭建的社区,使用 django1.10 和 Python3.5 强力驱动。.zip
共148个文件
py:65个
html:45个
txt:21个
需积分: 5 0 下载量 165 浏览量
2024-02-22
09:21:36
上传
评论
收藏 227KB ZIP 举报
温馨提示
为 Python 交流学习搭建的社区,使用 django1.10 和 Python3.5 强力驱动。
资源推荐
资源详情
资源评论
收起资源包目录
为 Python 交流学习搭建的社区,使用 django1.10 和 Python3.5 强力驱动。.zip (148个子文件)
bootstrap.css 187KB
bootstrap.min.css 147KB
bootstrap-grid.css 25KB
bootstrap-grid.min.css 18KB
bootstrap-reboot.css 6KB
bootstrap-reboot.min.css 5KB
.gitignore 1KB
detail.html 18KB
base.html 15KB
category_post_list.html 11KB
detail.html 9KB
index.html 9KB
500.html 6KB
donate.html 6KB
400.html 6KB
403.html 6KB
404.html 6KB
list.html 5KB
email.html 4KB
post_form.html 3KB
post_edit_form.html 3KB
connections.html 3KB
about.html 3KB
preview.html 2KB
_index.html 2KB
base.html 2KB
base.html 2KB
login.html 2KB
password_reset_from_key.html 2KB
base.html 1KB
profile.html 1KB
signup.html 1KB
email_confirm.html 1KB
password_reset.html 1KB
form.html 1KB
contact.html 850B
password_change.html 743B
password_set.html 732B
provider_list.html 727B
praise.html 578B
password_reset_done.html 573B
mention.html 572B
reply.html 562B
verification_sent.html 485B
favorite.html 375B
recommend.html 353B
email_confirmation_signup_message.html 266B
image.html 231B
field.html 157B
text_field.html 80B
hidden_field.html 72B
login_extra.html 52B
favicon.ico 4KB
bootstrap.js 97KB
bootstrap.min.js 46KB
bootstrap.css.map 230KB
bootstrap.min.css.map 66KB
bootstrap-grid.css.map 31KB
bootstrap-grid.min.css.map 12KB
bootstrap-reboot.css.map 9KB
bootstrap-reboot.min.css.map 3KB
README.md 1KB
test_views.py 12KB
test_mixins.py 11KB
views.py 8KB
test_models.py 8KB
mugshot.py 6KB
common.py 5KB
0001_initial.py 3KB
0001_initial.py 3KB
test_views.py 3KB
forum_tags.py 3KB
views.py 3KB
models.py 2KB
mixins.py 2KB
0001_initial.py 2KB
forms.py 2KB
models.py 2KB
moderation.py 2KB
urls.py 2KB
models.py 2KB
forms.py 2KB
adapter.py 2KB
utils.py 2KB
0001_initial.py 1KB
tests.py 1KB
0002_auto_20170529_1153.py 1KB
test_utils.py 1KB
feeds.py 981B
models.py 958B
test_models.py 937B
urls.py 868B
manage.py 804B
forms.py 767B
production.py 763B
0002_reply_user.py 724B
views.py 529B
admin.py 501B
admin.py 495B
urls.py 442B
共 148 条
- 1
- 2
资源评论
Kwan的解忧杂货铺
- 粉丝: 2w+
- 资源: 3699
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功