Django admin theme based adminlte & bootstrap
Project description
Django jazzmin (Jazzy Admin)
Drop-in theme for django admin, that utilises AdminLTE & Bootstrap to make yo’ admin looky jazzy
This was initially a Fork of https://github.com/wuyue92tree/django-adminlte-ui that I refactored so much I thought it deserved its own package, big thanks to @wuyue92tree for all of his initial hard work, I am still patching into that project were possible, but this project is taking a slightly different direction.
Installation
pip install django-jazzmin
Setup & configuration
See the test_app (https://github.com/farridav/django-jazzmin/tests/test_app/settings.py) for a full implementation
# settings.py
INSTALLED_APPS = [
# Place before admin
'jazzmin',
'django.contrib.admin',
[...]
]
JAZZMIN_SETTINGS = {
# title of the window
'site_title': 'Polls Admin',
# Title on the login screen
'site_header': 'Polls',
# square logo to use for your site, must be present in static files, used for favicon and brand on top left
'site_logo': None,
# Welcome text on the login screen
'welcome_sign': 'Welcome to polls',
# Copyright on the footer
'copyright': 'Acme Ltd',
# The model admin to search from the search bar, search bar omitted if excluded
'search_model': 'auth.User',
# Field name on user model that contains avatar image
'user_avatar': None,
# Links to put along the top menu
'topmenu_links': [
# Url that gets reversed (Permissions can be added)
{'name': 'Home', 'url': 'admin:index', 'permissions': ['auth.view_user']},
# external url that opens in a new window (Permissions can be added)
{'name': 'Support', 'url': 'https://github.com/farridav/django-jazzmin/issues', 'new_window': True},
# model admin to link to (Permissions checked against model)
{'model': 'auth.User'},
# App with dropdown menu to all its models pages (Permissions checked against models)
{'app': 'polls'},
],
# Whether to display the side menu
'show_sidebar': True,
# Whether to aut expand the menu
'navigation_expanded': True,
# Hide these apps when generating side menu
'hide_apps': [],
# Hide these models when generating side menu
'hide_models': [],
# List of apps to base side menu ordering off of
'order_with_respect_to': ['accounts', 'polls'],
# Custom links to append to app groups, keyed on app name
'custom_links': {
'polls': [{
'name': 'Make Messages', 'url': 'make_messages', 'icon': 'fa-comments',
'permissions': ['polls.view_polls']
}]
},
# Custom icons per model in the side menu See https://www.fontawesomecheatsheet.com/font-awesome-cheatsheet-5x/
# for a list of icon classes
'icons': {
'auth.user': 'fa-user',
}
}
Screenshots
Thanks
This was initially a Fork of https://github.com/wuyue92tree/django-adminlte-ui that we refactored so much we thought it deserved its own package, big thanks to @wuyue92tree for all of his initial hard work, we are still patching into that project were possible, but this project is taking a slightly different direction.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-jazzmin-2.0.0.tar.gz.
File metadata
- Download URL: django-jazzmin-2.0.0.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb7864a904b3d3d754ae04ad340da387630a03f81873248fedde89ccbb92d119
|
|
| MD5 |
eda22986d330dccb815c0c403d2a7b10
|
|
| BLAKE2b-256 |
5fa288729ff9d27bd77498f55b2cec2d8f2264daf49dc0bb6e47ed002891c96b
|
File details
Details for the file django_jazzmin-2.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: django_jazzmin-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.6 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d2a64892c439ec4ee77d3becb6934436b2d87aada7fd0fc2f84062e8257055
|
|
| MD5 |
94bd3eb4f787c7047567f621667426df
|
|
| BLAKE2b-256 |
1690e0977cbe97755130c4e9a55edff7c6d442473690e67e00c46a334b959960
|