Skip to main content

django admin 后台模板

Project description

django admin simpleui
-----
django admin 美化主题,采用layui 作为基本框架,改写大部分页面

## 说明
+ 安装
```python
pip install django-simpleui
```
+ 升级
```python
pip install django-simpleui --upgrade
```
+ 克隆源码本地安装
```shell
git clone https://github.com/newpanjing/simpleui
cd simpleui
python setup.py sdist install
```
+ 项目 settings.py 的INSTALLED_APPS 第一行加入
> `simpleui`
+ i18n 50%支持

+ 建议启动之前把静态文件克隆到根目录,然后用nginx处理静态文件
```python
python3 manage.py collectstatic
```
## 修改首页
本主题提供了一个默认的首页,由于不同业务的需求,需要定制首页可以按照如下操作进行

在自己项目的settings.py中加入:

```python

# 首页配置
SIMPLEUI_HOME_PAGE = 'https://www.baidu.com'
# 首页标题
SIMPLEUI_HOME_TITLE = '百度一下你就知道'
# 首页图标
SIMPLEUI_HOME_ICON = 'layui-icon-rate'

```
三项配置都是选填,不填都会有默认值。
[图标列表](/ICON.md)

## 自动配图标功能
+ 自动配图标功能采用jieba分词插件对菜单项进行分词,然后在simpletags.py中进行匹配
+ 建议自己开个一个菜单管理模块,不然目前这种方式需要非常完善的词库才能较好的支持。

## 采用 simpleui的网站
1. [贝塔博客](https://www.88cto.com)
2. [奇客网](https://www.qikenet.com)
3. [WeNat](https://www.wezoz.com)
4. [72WO](https://www.72wo.com)
5. [12APM](https://www.12apm.com)

## 美化页面
+ 登录页
+ 主页
+ 列表页
+ 编辑页
+ 历史

## 更新日志

### version 1.4

+ 由于django无法自定义图标,所以采用猜测的方式来给菜单显示图标
+ 修复select下拉框bug
+ 修复错误提示不显示bug
+ 图标使用最新版layui 2.4.4
+ 导入jieba分词,用于猜测图标

## version 1.4.1
+ 取消日志输出

## version 1.4.2
+ 修复布尔类型下拉框无法显示bug

## version 1.4.3
+ 修正登录页面标题显示

## version 1.4.4
+ 修复pip 安装失败bug
> 部分用户设置的pip,是Python2的版本,导致安装失败
+ 去掉首页代码库标识

## version 1.4.5
+ 增加自定义首页功能
## version 1.4.6
+ 加入 `# -*- coding: utf-8 -*-` 以支持python2

## version 1.4.7
- [x] 标题页点击刷新菜单无效
- [x] 列表页的过滤条件下拉框,如果类型为普通字段,内容不能被正确显示
- [x] 所有的搜索,在第一页显示正常,但是在第二页的时候就丢失了搜索关键字,也就是说这个第二页就是当前页面所有数据分页之后的第二页
- [X] 在list_filter中,不能按时间过滤(增加了时间区域选择,由于django的限制,暂时不能很好的发挥作用)



## v1.4版预览图

![img](https://github.com/newpanjing/simpleui/raw/master/images/图片1.png)
![img](https://github.com/newpanjing/simpleui/raw/master/images/图片2.png)
![img](https://github.com/newpanjing/simpleui/raw/master/images/图片3.png)
![img](https://github.com/newpanjing/simpleui/raw/master/images/图片4.png)
![img](https://github.com/newpanjing/simpleui/raw/master/images/图片5.png)

> 改版本的图标猜测功能可能不大完善,大家可以提issue 来完善。

Project details


Release history Release notifications | RSS feed

This version

1.4.7

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-simpleui-1.4.7.tar.gz (1.4 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page