Skip to main content

A simple django admin theme.

Project description

DjangoJuss

一个简单的django后台模板

Screenshots

Login Users

Quick start

  1. 下载django-juss
$ pip install django-juss
  1. settings中修改INSTALLED_APPS
INSTALLED_APPS = [
    'juss',
    'django.contrib.admin',
    ...
]
  1. 修改MIDDLEWARE
MIDDLEWARE = [
    ...
    'juss.middlewares.LeftMenuMiddleware',
]
  1. 添加自定义菜单(如果未设置, 则显示默认布局)
JUSS_LEFT_MENU = [
    {'label':'仪表板', 'children':[
        {'label':'首页', 'path':'/admin/'},
    ]},
    {'label':'认证和授权', 'children':[
        {'model':'account.user'},
        {'model':'account.group'},
    ]}
]
  1. 设置登录页面背景图片

settings.py中添加

JUSS_LOGIN_BG = 'https://example.jpg'

内置Fields

  1. JSONEditField

简单的JSON编辑字段, 基于django.contrib.postgres.fields.JSONField

  1. MultipleImageField

多图片选择字段, 基于django.contrib.postgres.fields.ArrayField

内置Widgets

  1. RichTextWidget

使用tinymce的富文本编辑

  1. JFileInputWidget

扩展默认的FileInput, 增加缩略图展示

  1. JMSelectWidget

扩展默认的FilePathField, 增加可视化图片选择

  1. JImageWidget

图片选择字段, 基于URLField, 需安装django-attachments

版本说明

  • v0.1.6 调整样式细节

  • v0.1.5 增加ImageChoiceField, RichTextField 增加可折叠左侧菜单

  • v0.1.4 增加JSONEditField, MultipleImageField

  • v0.1.3 增加JImageWidget 增加自定义登录页面背景图JUSS_LOGIN_BG

Project details


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.6.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