Giter VIP home page Giter VIP logo

django-juss's Introduction

DjangoJuss

一个简单的django后台模板

Screenshots

Login Index ChangeList ChangeForm

Quick start

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

urls.py中添加

from django.contrib import admin

admin.site.login_bg = 'https://example.jpg'

urlpatterns = [
    ...
    path('admin/', admin.site.urls),
    ...
]

版本说明

  • v0.2.0 (2020/08/03) 配色样式更新, 移除fields, forms等, 只专注admin样式

  • v0.1.8 (2020/05/20) 使用template tag 代替middleware

  • v0.1.7 多图增加上传

  • v0.1.6 调整样式细节

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

  • v0.1.4 增加JSONEditField, MultipleImageField

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

django-juss's People

Contributors

chanmo avatar

Stargazers

 avatar  avatar  avatar

Watchers

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