Add Jazzmin-Plugin & -Settings

main
Samuel Zielke 1 month ago
parent 883e4babd4
commit 47446ec7ec

@ -0,0 +1,24 @@
JAZZMIN_SETTINGS = {
"site_title": "ChartaCapsa Admin",
"site_header": "KartenKiste",
"site_brand": "🗃️ KartenKiste",
"welcome_sign": "Willkommen in der KartenKiste",
"copyright": "ChartaCapsa Ltd",
"search_model": ["gebiete.Gebiet"],
# Emojis für die Menüstruktur links
"icons": {
"auth.user": "fas fa-user",
"gebiete.person": "fas fa-users",
"gebiete.gebiet": "fas fa-map-marked-alt",
},
"topmenu_links": [
{"name": "Dashboard", "url": "admin:index", "permissions": ["auth.view_user"]},
],
}
# Farb-Theme auf ein sauberes, sanftes Layout einstellen
JAZZMIN_UI_TWEAKS = {
"theme": "flatly", # Basiert auf einem sehr cleanen, flachen Bootstrap-Theme
"dark_mode_theme": None,
}

@ -31,6 +31,10 @@ ALLOWED_HOSTS = []
# Application definition
INSTALLED_APPS = [
# PLUGIN
'jazzmin',
# DEFAULT
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@ -118,3 +122,6 @@ USE_TZ = True
# https://docs.djangoproject.com/en/6.0/howto/static-files/
STATIC_URL = 'static/'
# Jazzmin-Konfiguration aus separater Datei laden
from .jazzmin_settings import JAZZMIN_SETTINGS, JAZZMIN_UI_TWEAKS
Loading…
Cancel
Save

Powered by TurnKey Linux.