Skip to content

Commit

Permalink
ver1.2.0 完善功能;新增 docker 方式部署;尝试加入 celery 4.3.0 实现异步任务
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 2, 2019
1 parent 6fde80d commit 9424c2f
Show file tree
Hide file tree
Showing 66 changed files with 2,298 additions and 363 deletions.
15 changes: 15 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

224 changes: 160 additions & 64 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM python:3.7
ADD . /devops
WORKDIR /devops
RUN cd /devops && pip install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
RUN cd /devops && echo_supervisord_conf > /etc/supervisord.conf && cat deamon.ini >> /etc/supervisord.conf && \
sed -i 's/nodaemon=false/nodaemon=true/g' /etc/supervisord.conf
EXPOSE 8000
ENTRYPOINT ["supervisord", "-c", "/etc/supervisord.conf"]
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@


# 安装
原始方式
```
# 安装相关库
pip install -r requirements.txt
Expand All @@ -11,6 +12,11 @@ pip install -r requirements.txt
python3 manage.py runserver
```

docker方式(centos7)
```
sh start_docker.sh
```

访问首页:http://127.0.0.1:8000
账号: admin 密码:123456

Expand All @@ -29,15 +35,15 @@ python3 manage.py runserver

# TODO LISTS
- [x] 用户登陆
- [ ] 查看用户信息
- [ ] 修改用户信息
- [x] 查看用户信息
- [x] 修改用户信息
- [x] 修改用户密码
- [ ] 重置用户密码
- [x] 查看用户
- [x] 查看用户组
- [ ] 添加用户
- [ ] 添加用户组
- [ ] 修改用户
- [x] 修改用户
- [ ] 修改用户组
- [ ] 删除用户
- [ ] 删除用户组
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
Loading

0 comments on commit 9424c2f

Please sign in to comment.