2 Star 20 Fork 10

以谁为师 / cmdb

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

基于Django的cmdb运维资产管理系统

环境

Python Django Simpleui

docker部署

docker pull lghost/cmdb # 拉取镜像到本地
docker run -d -p 8080:8080  --name cmdb lghost/cmdb:latest
# 运行容器
docker exec -it cmdb  python manage.py createsuperuser
# 设置密码

手动部署

cd cmdb
echo env_django >> .gitignore # 排除env环境上传至git
python3 -m venv env_django
# 创建env环境
source  env_django/bin/activate # 载入py环境

pip  install -i http://mirrors.aliyun.com/pypi/simple  --trusted-host mirrors.aliyun.com  -r install/requirements.txt
#安装pip包(阿里源)


python manage.py makemigrations 
# 为改动models创建迁移记录
python manage.py migrate 
# 同步数据库
python manage.py  createsuperuser
# 建立后台管理员帐号


python manage.py runserver 0.0.0.0:8080
#启动服务

效果预览

首页: 首页

后台: 后台

后台

QQ交流群

qq

Comments ( 7 )

Sign in for post a comment

About

基于Django的运维资产管理系统 spread retract
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/attacker/cmdb.git
git@gitee.com:attacker/cmdb.git
attacker
cmdb
cmdb
master

Search

101046 36f486cf 1899542 101055 4cb66026 1899542