Skip to main content

Django Semantic UI admin theme

django-semantic-admin

A completely free (MIT) Semantic UI 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.

Log in to the demo with username admin and password semantic: https://semantic-admin.com

Documentation is on GitHub Pages.

Django Semantic Forms

🎉 As of v0.5.0, forms were moved to django-semantic-forms. semantic_forms must be added to INSTALLED_APPS.

INSTALLED_APPS = ["semantic_admin", "semantic_forms", ...]

You may use semantic_forms outside of the admin.

Why?

  • Looks professional, with a nice sidebar.
  • Responsive 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", "semantic_forms", "django.contrib.admin", ...]

Please remember to run python manage.py collectstatic for production deployments.

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)

Awesome optional features

  1. Optional integration with django-filter:
django-filter

To enable this awesome feature, add filterset_class to your Django admin:

from semantic_forms.filters import SemanticFilterSet


class DemoFilter(SemanticFilterSet):
    class Meta:
        model = Demo
        fields = ("demo_field",)


class DemoAdmin(SemanticModelAdmin):
    filterset_class = DemoFilter
  1. HTML preview in Django autocomplete_fields:
html5-autocomplete

To enable this awesome feature, add the semantic_autocomplete property to your Django model:

class DemoModel(models.Model):
    @property
    def semantic_autocomplete(self):
        return self.get_img()

Contributing

Install dependencies with uv sync --group dev. The demo is built with invoke tasks. For example, cd demo; uv run invoke build.

Notes

Please note, this package uses Fomantic UI the official community fork of Semantic UI.

Metadata

Release files for django-semantic-admin 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-semantic-admin 0.7.1
File Size Uploaded Provenance Actions
django_semantic_admin-0.7.1.tar.gz 2.5 MB Without provenance Details for django_semantic_admin-0.7.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-semantic-admin 0.7.1
File Interpreter ABI Platform Actions
django_semantic_admin-0.7.1-py3-none-any.whl Python 3 none any Details for django_semantic_admin-0.7.1-py3-none-any.whl

Total release size: 2.6 MB

Release files / django_semantic_admin-0.7.1.tar.gz

Download URL django_semantic_admin-0.7.1.tar.gz
Size 2.5 MB
Tags Source
SHA-256 checksum
How to use checksums
e8c3eee3c5f85a074d11bebb0daee24e436153b924cba413aaa692b980199baf
BLAKE2b-256 checksum
How to use checksums
785fabad21a0d9e814987b3c1bbd9aab5aae9a6acb68811ed1e2f40b26d55d5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / django_semantic_admin-0.7.1-py3-none-any.whl

Download URL django_semantic_admin-0.7.1-py3-none-any.whl
Size 93.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
83958356c26af25ce517f5d39c4f817c7c1e5ac7597c2520e3a64b88772be90f
BLAKE2b-256 checksum
How to use checksums
477131926a6cc9419927eb852cb2ca4ce81093aa85d2aedeefed17f9de6c11b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for django-semantic-admin 0.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page