Skip to main content

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

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 details)

Uploaded Source

File details

Details for the file django-juss-0.1.6.tar.gz.

File metadata

  • Download URL: django-juss-0.1.6.tar.gz
  • Upload date:
  • Size: 1.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.2

File hashes

Hashes for django-juss-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e1e91f95c415210f44a547dee15b05cd8c63b0d7eac6c0f1eaaee7526c45663b
MD5 759023a25fbdba806ca53cc2a62805bc
BLAKE2b-256 7620985f9cdbb91f56326a3a71411789ef7db7e9a1fe9fde4a61c56001152148

See more details on using hashes here.

Supported by

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