Git Product home page Git Product logo

bindui's Introduction

BindUI

Bind web admin UI.

一款基于 BIND、DLZ、MySQL/PostgreSQL、Djano 的WEB可视化域名管理系统。

支持多线路智能解析(基于view实现的智能DNS)、批量导入/导出域名记录(RR)、支持常用的RR类型。

运行环境

Python 3.11
Django 4
MySQL 8 | MariaDB 10 | PostgreSQL 15 (任选一个)

依赖模块

django Pillow pymysql IPy xlrd xlwt

安装依赖模块

pip3 install -r ./requirements.txt

初始化

cd <项目的根路径>
python3 manage.py migrate
python3 manage.py makemigrations
python3 manage.py migrate

// 创新 Django 超级用户,用于 WEB 登录
python3 manage.py createsuperuser

如果是非 初始化时,修改了表的设计,则运行下列命令合并表的变动

cd <项目的根路径>
python3 manage.py makemigrations
python3 manage.py migrate

操作页面

image
image
image
image
image
image
image

注意

mysql连接驱动改为 pymysql

报错1

执行python manager.py 相关操作报错:
django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

解决方法

  1. 在每个app目录的__init__.py文件添加下面的内容
    import pymysql
    pymysql.install_as_MySQLdb()
  2. {python安装根目录}/lib/python3.7/site-packages/django/db/backends/mysql/base.py 注释下面这两行
if version < (1, 3, 3):
    raise ImproperlyConfigured("mysqlclient 1.3.3 or newer is required; you have %s" % Database.__version__)

报错2

AttributeError: 'str' object has no attribute 'decode'

解决方法

修改python安装根目录}/lib/python3.7/site-packages/django/db/backends/mysql/operations.py 146行,decode改为encode

if query is not None:
    query = query.decode(errors='replace')
return query

改成

if query is not None:
    query = query.encode(errors='replace')
return query

bindui's People

Contributors

cucker0 avatar

Stargazers

 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.