Giter VIP home page Giter VIP logo

chain's Introduction

Chain

一个基于django2.0版本,极简主义的云主机CMDB增删改查项目!

非常适合django刚入门的人拿来参考!

大家可以看一下,欢迎提出修改意见。 然后大家以此为基础,各自开发自己的板块,最后合成一个项目。

  • 交流群号: 620176501 欢迎交流!

DEMO

http://47.94.252.25:8001

账号 admin
密码 1qaz.2wsx

环境

前端:

  • INSPINIA 2.7.1

后端:

  • django==2.0.3
  • Python3.6.4

部署

修改 chain/settings.py

web_ssh = "47.94.252.25"    ##修改为本机外网IP,
web_port = 8002

git clone https://github.com/hequan2017/chain.git

cd chain/

pip3 install -r   requirements.txt


mv  db.sqlite3  /tmp/

python3   manage.py   makemigrations
python3   manage.py   migrate

创建用户
python manage.py  shell  << EOF
from django.contrib.auth.models import User
user=User.objects.create_superuser('admin','[email protected]','1qaz.2wsx')
exit()
EOF



python3   manage.py runserver 0.0.0.0:80


python3   webssh/main.py    ##启动终端登录功能
如果遇到报错 ImportError: No module named '_sqlite3' ,可以执行下面的操作

yum -y install sqlite-devel

重新编译python3.6.4

想在windows 环境下运行,请注释 tasks/views.py  以下两行
from   .ansible_2420.runner import AdHocRunner
from   .ansible_2420.inventory import BaseInventory

截图

DEMO DEMO DEMO


作者

0.1

  • 何全

chain's People

Contributors

hequan2017 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.