Skip to content

vrialland/django-semantic-admin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Django Semantic UI admin theme

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 34.1%
  • Python 33.4%
  • JavaScript 31.2%
  • CSS 1.3%