Browse Source

Adiciona tema Django-material-admin

revisaoSidenav
Sesostris Vieira 3 years ago
parent
commit
3be7812845
  1. 1
      requirements/requirements.txt
  2. 50
      sigi/settings/base.py
  3. BIN
      sigi/static/img/engitec.jpeg
  4. BIN
      sigi/static/img/interlegis.jpeg

1
requirements/requirements.txt

@ -8,5 +8,6 @@ django-bootstrap5==21.3
django-extensions==3.1.5
django-import-export==2.7.1
django-localflavor==3.1
django-material-admin==1.8.6
django-tinymce==3.4.0
django-weasyprint==2.1.0

50
sigi/settings/base.py

@ -35,8 +35,8 @@ INSTALLED_APPS = [
'tinymce',
'django_bootstrap5',
'django.forms',
# 'material',
# 'material.admin',
'material',
'material.admin',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
@ -114,26 +114,26 @@ IMPORT_EXPORT_USE_TRANSACTIONS = True
IMPORT_EXPORT_SKIP_ADMIN_LOG = True
# Django Material Admin settings
#
# MATERIAL_ADMIN_SITE = {
# 'HEADER': _('SIGI'),
# 'TITLE': _('SIGI - Sistema de Informações do Interlegis'),
# 'FAVICON': 'img/favicon.ico',
# # 'MAIN_BG_COLOR': 'color', # Admin site main color, css color should be specified
# # 'MAIN_HOVER_COLOR': 'color', # Admin site main hover color, css color should be specified
# 'PROFILE_PICTURE': 'img/interlegis.jpeg', # Admin site profile picture (path to static should be specified)
# 'PROFILE_BG': 'img/engitec.jpeg', # Admin site profile background (path to static should be specified)
# 'LOGIN_LOGO': 'img/interlegis.jpeg', # Admin site logo on login page (path to static should be specified)
# 'LOGOUT_BG': 'img/engitec.jpeg', # Admin site background on login/logout pages (path to static should be specified)
# 'SHOW_THEMES': True, # Show default admin themes button
# 'TRAY_REVERSE': True, # Hide object-tools and additional-submit-line by default
# 'NAVBAR_REVERSE': True, # Hide side navbar by default
# # 'SHOW_COUNTS': True, # Show instances counts for each model
# # 'APP_ICONS': { # Set icons for applications(lowercase), including 3rd party apps, {'application_name': 'material_icon_name', ...}
# # 'sites': 'send',
# # },
# # 'MODEL_ICONS': { # Set icons for models(lowercase), including 3rd party models, {'model_name': 'material_icon_name', ...}
# # 'site': 'contact_mail',
# # }
# }
# https://github.com/MaistrenkoAnton/django-material-admin#django-material-administration
MATERIAL_ADMIN_SITE = {
'HEADER': _('SIGI'),
'TITLE': _('SIGI - Sistema de Informações do Interlegis'),
'FAVICON': 'img/favicon.ico',
# 'MAIN_BG_COLOR': 'color', # Admin site main color, css color should be specified
# 'MAIN_HOVER_COLOR': 'color', # Admin site main hover color, css color should be specified
'PROFILE_PICTURE': 'img/interlegis.jpeg', # Admin site profile picture (path to static should be specified)
'PROFILE_BG': 'img/engitec.jpeg', # Admin site profile background (path to static should be specified)
'LOGIN_LOGO': 'img/interlegis.jpeg', # Admin site logo on login page (path to static should be specified)
'LOGOUT_BG': 'img/engitec.jpeg', # Admin site background on login/logout pages (path to static should be specified)
'SHOW_THEMES': True, # Show default admin themes button
'TRAY_REVERSE': True, # Hide object-tools and additional-submit-line by default
'NAVBAR_REVERSE': True, # Hide side navbar by default
# 'SHOW_COUNTS': True, # Show instances counts for each model
# 'APP_ICONS': { # Set icons for applications(lowercase), including 3rd party apps, {'application_name': 'material_icon_name', ...}
# 'sites': 'send',
# },
# 'MODEL_ICONS': { # Set icons for models(lowercase), including 3rd party models, {'model_name': 'material_icon_name', ...}
# 'site': 'contact_mail',
# }
}

BIN
sigi/static/img/engitec.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
sigi/static/img/interlegis.jpeg

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Loading…
Cancel
Save