GithubHelp home page GithubHelp logo

misakamikodo / bindui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cucker0/bindui

1.0 1.0 0.0 6.64 MB

bind ui, web admin

Python 1.34% CSS 7.00% JavaScript 47.86% HTML 43.65% PHP 0.09% Shell 0.05%

bindui's Introduction

BindUI

Bind web admin UI

依赖模块

django Pillow pymysql IPy xlrd xlwt

注意

  • mysql连接驱动改为 pymysql
## 报错:
执行python manager.py 相关操作报错:django.core.exceptions.ImproperlyConfigured: mysqlclient 1.3.13 or newer is required; you have 0.9.3.

解决方法:
* 在每个app目录的__init__.py文件添加下面的内容:
import pymysql
pymysql.install_as_MySQLdb()

* {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__)

## 报错: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


初始化

python manage.py migrate python manage.py makemigrations python manage.py migrate python manage.py createsuperuser

操作页面

image image image image image image image

bindui's People

Contributors

cucker0 avatar

Stargazers

Kisofdeath avatar

Watchers

James Cloos 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.