A simple django admin theme.
Project description
DjangoJuss
一个简单的django后台模板
Screenshots
Quick start
- 下载
django-juss
$ pip install django-juss
- 在
settings
中修改INSTALLED_APPS
INSTALLED_APPS = [
'juss',
'django.contrib.admin',
...
]
- 修改
MIDDLEWARE
MIDDLEWARE = [
...
'juss.middlewares.LeftMenuMiddleware',
]
- 添加自定义菜单(如果未设置, 则显示默认布局)
JUSS_LEFT_MENU = [
{'label':'仪表板', 'children':[
{'label':'首页', 'path':'/admin/'},
]},
{'label':'认证和授权', 'children':[
{'model':'account.user'},
{'model':'account.group'},
]}
]
- 设置登录页面背景图片
在settings.py
中添加
JUSS_LOGIN_BG = 'https://example.jpg'
内置Fields
- JSONEditField
简单的JSON编辑字段, 基于django.contrib.postgres.fields.JSONField
- MultipleImageField
多图片选择字段, 基于django.contrib.postgres.fields.ArrayField
内置Widgets
- RichTextWidget
使用tinymce
的富文本编辑
- JFileInputWidget
扩展默认的FileInput, 增加缩略图展示
- JMSelectWidget
扩展默认的FilePathField, 增加可视化图片选择
- JImageWidget
图片选择字段, 基于URLField, 需安装django-attachments
版本说明
-
v0.1.5 增加
ImageChoiceField
,RichTextField
增加可折叠左侧菜单 -
v0.1.4 增加
JSONEditField
,MultipleImageField
-
v0.1.3 增加
JImageWidget
增加自定义登录页面背景图JUSS_LOGIN_BG
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-juss-0.1.5.tar.gz
(1.4 MB
view hashes)