Changement theme avec jazzmin
This commit is contained in:
@@ -39,6 +39,7 @@ CSRF_TRUSTED_ORIGINS = ['https://rh.ambulance-clerc.ch']
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'jazzmin',
|
||||
'django.contrib.auth',
|
||||
'django.contrib.contenttypes',
|
||||
'django.contrib.sessions',
|
||||
@@ -210,16 +211,16 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
|
||||
|
||||
JAZZMIN_SETTINGS = {
|
||||
# title of the window (Will default to current_admin_site.site_title if absent or None)
|
||||
"site_title": "Reskreen-Admin",
|
||||
"site_title": "ClercNet-Admin",
|
||||
|
||||
# Title on the login screen (19 chars max) (defaults to current_admin_site.site_header if absent or None)
|
||||
"site_header": "Reskreen",
|
||||
"site_header": "ClercNet",
|
||||
|
||||
# Title on the brand (19 chars max) (defaults to current_admin_site.site_header if absent or None)
|
||||
"site_brand": "Reskreen",
|
||||
"site_brand": "ClercNet",
|
||||
|
||||
# Logo to use for your site, must be present in static files, used for brand on top left
|
||||
"site_logo": "books/img/logo.png",
|
||||
"site_logo": "img/logo.png",
|
||||
|
||||
# CSS classes that are applied to the logo above
|
||||
"site_logo_classes": "img-circle",
|
||||
@@ -228,10 +229,10 @@ JAZZMIN_SETTINGS = {
|
||||
"site_icon": None,
|
||||
|
||||
# Welcome text on the login screen
|
||||
"welcome_sign": "Welcome to the Reskreen admin",
|
||||
"welcome_sign": "Welcome to the ClercNet admin",
|
||||
|
||||
# Copyright on the footer
|
||||
"copyright": "Resk-U",
|
||||
"copyright": "Ambulance Clerc & Resk-U",
|
||||
|
||||
# The model admin to search from the search bar, search bar omitted if excluded
|
||||
"search_model": "auth.User",
|
||||
@@ -256,7 +257,7 @@ JAZZMIN_SETTINGS = {
|
||||
{"model": "auth.User"},
|
||||
|
||||
# App with dropdown menu to all its models pages (Permissions checked against models)
|
||||
{"app": "polls"},
|
||||
{"app": "carnet_rouge"},
|
||||
],
|
||||
|
||||
#############
|
||||
|
||||
BIN
Reskreen/static/img/logo.png
Normal file
BIN
Reskreen/static/img/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 311 KiB |
@@ -16,7 +16,12 @@ Including another URLconf
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
|
||||
from django.conf import settings
|
||||
from django.conf.urls.static import static
|
||||
from django.views.generic import RedirectView
|
||||
|
||||
urlpatterns = [
|
||||
path('', RedirectView.as_view(url='admin/login/', permanent=False), name='/'),
|
||||
path('admin/', admin.site.urls),
|
||||
path('accounts/', admin.site.urls),
|
||||
path('collabs/', include('collabs.urls')),
|
||||
@@ -24,4 +29,9 @@ urlpatterns = [
|
||||
path('caldav/', include('mycaldav.urls')),
|
||||
#path('collabs_hour/', include('collabs.urls')),
|
||||
path('carnet_rouge/', include('carnet_rouge.urls')),
|
||||
path('summernote/', include('django_summernote.urls')),
|
||||
path('editor/', include('django_summernote.urls')),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
Reference in New Issue
Block a user