GithubHelp home page GithubHelp logo

turbo73 / django-idcops Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alertboy/django-idcops

0.0 0.0 0.0 6.65 MB

A data center asset management software.

Home Page: https://idcops.iloxp.com/

License: Apache License 2.0

Shell 1.55% Python 79.26% HTML 19.09% Dockerfile 0.10%

django-idcops's Introduction

idcops 简介

idcops 是一个基于 Django 开发,倾向于数据中心运营商使用的,拥有数据中心、客户、机柜、设备、跳线、物品、测试、文档等一系列模块的资源管理平台,解决各类资源集中管理与数据可视化的问题。 idcops 通过“数据中心”来分类管理每个数据中心下面的资源,每个数据中心均是单独的。

软件许可协议

django-idcops 遵循 Apache License 2.0。

官方文档:https://idcops.iloxp.com/static/docs/

GitHub: https://github.com/Wenvki/django-idcops

交流讨论

作者博客

QQ群:185964462 数据中心运维管理idcops


项目截图

演示地址

关注公众号回复数字 7 获取体验账号

weixin_qrcode

仪表盘


快速开始

一、安装

1. 极速安装,支持WSL部署(推荐)

需要联网,脚本一键自动安装

cd /opt
curl -sL https://gitee.com/wenvki/django-idcops/raw/master/auto_install.sh | sh

或
cd /opt
wget -q https://gitee.com/wenvki/django-idcops/raw/master/auto_install.sh
sh auto_install.sh

# 安装目录: /opt/django-idcops/ 
# 默认端口号: 18113 (gunicorn),参数:SrvPort
# 默认idcops版本:develop,参数:VERSION develop[master]
# nginx 反向代理 18113 端口即可

快速部署参考链接

2. 手动部署线上生产环境

一步一步手动安装,可以进一步理解Django运行部署

部署线上生产环境

二、配置settings.py

/opt/django-idcops/idcops_proj/settings.py

# django options

STATIC_URL = '{}static/'.format(SITE_PREFIX)

STATIC_ROOT = os.path.join(BASE_DIR, 'static')

MEDIA_URL = '{}media/'.format(SITE_PREFIX)

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')

LOGIN_URL = '{}accounts/login/'.format(SITE_PREFIX)

LOGIN_REDIRECT_URL = '{}accounts/profile/'.format(SITE_PREFIX)

# idcops options
# 默认为: '/'
# 可配置为以 '/' 开始的字符串
# 例如: '/idcops/', 则 nginx 反向代理为: http://127.0.0.1:18113/idcops/
SITE_PREFIX = '/'

if SITE_PREFIX:
    SITE_PREFIX = SITE_PREFIX.rstrip('/') + '/'

# SOFT_DELETE 设置为 `True`, 则执行删除的时候不会直接从数据库删除
SOFT_DELETE = True

# COLOR_TAGS 设置为 `True`, 相关标签会根据设置的颜色进行显示
COLOR_TAGS = True

# COLOR_FK_FIELD 设置为 `True`, 相关机房选项会根据设置的颜色进行显示
COLOR_FK_FIELD = False


HIDDEN_COMMENT_NAVBAR = False

# TEST_ENV = True

# `Device` 过保提前提醒天数
REMIND_ADVANCE_DAYS = 30

Thanks

JetBrains Community Support


捐赠该项目

开源不易,可以用支付宝扫下面二维码以赏金的模式打赏支持。您的支持是我不断创作的动力

Bounty

django-idcops's People

Contributors

decbe avatar hepingye avatar keanefeng avatar dependabot[bot] 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.