Django Semantic UI Admin theme
Project description
A Django Semantic UI Admin theme
Django Semantic UI Admin is a completely free (MIT) admin theme for Django. Actually, this is my 3rd admin theme for Django. The first was forgettable, and the second was with Pure CSS. Pure CSS was great, but lacked JavaScript components.
Semantic UI looks professional, and has great JavaScript components.
Why?
- Looks professional, with a nice sidebar.
- Resonsive design, even tables can stack responsively on mobile.
- JavaScript datepicker and timepicker components.
- JavaScript selects, including multiple selections, which integrate well with Django autocomplete fields.
- Semantic UI has libraries for React and Vue, in addition to jQuery. This means this package can be used to style the admin, and custom views can be added with React or Vue components with the same style.
Install
Install from PyPI:
pip install django-semantic-admin
Add to settings.py
before django.contrib.admin
:
INSTALLED_APPS = [
"semantic_admin",
"django.contrib.admin",
...
]
Usage
Instead of admin.ModelAdmin
, admin.StackedInline
, or admin.TabularInline
:
class ExampleStackedInline(admin.StackedInline):
pass
class ExampleTabularInline(admin.TabularInline):
pass
class ExampleAdmin(admin.ModelAdmin):
inlines = (ExampleStackedInline, ExampleTabularInline)
Inherit from their Semantic
equivalents:
from semantic_admin import SemanticModelAdmin, SemanticStackedInline, SemanticTabularInline
class ExampleStackedInline(SemanticStackedInline):
pass
class ExampleTabularInline(SemanticTabularInline):
pass
class ExampleAdmin(SemanticModelAdmin):
inlines = (ExampleStackedInline, ExampleTabularInline)
Notes
Please note, this package uses Fomantic UI the official community fork of Semantic UI.
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
Close
Hashes for django-semantic-admin-0.1.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ac027dceac2c5eb643745ca62fd9df6322073fb5b4f9cebd5ff0e7e1df3ae28 |
|
MD5 | ae7c3b885a99dc752b3fa03d0e615554 |
|
BLAKE2b-256 | 26bab99b13ab66d16226c65057bf700f3b829b8d1de22219b568e60bc6a03201 |
Close
Hashes for django_semantic_admin-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 523de996cee40fe8f3bdc31151bf27b28d461c1f6023a43fd4d432f5fba02a9d |
|
MD5 | 171b952470628aafed91f58dcfda3559 |
|
BLAKE2b-256 | 8849c152ba60fd75992cb967fba12745992002e410fbb565fe99c65f0454c550 |