diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 26e0347..061d3f3 100644 --- a/requirements/requirements.txt +++ b/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 \ No newline at end of file diff --git a/sigi/settings/base.py b/sigi/settings/base.py index ec78912..9494121 100644 --- a/sigi/settings/base.py +++ b/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', -# # } -# } \ No newline at end of file +# 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', + # } +} \ No newline at end of file diff --git a/sigi/static/img/engitec.jpeg b/sigi/static/img/engitec.jpeg new file mode 100644 index 0000000..bc8eec8 Binary files /dev/null and b/sigi/static/img/engitec.jpeg differ diff --git a/sigi/static/img/interlegis.jpeg b/sigi/static/img/interlegis.jpeg new file mode 100644 index 0000000..635ae8c Binary files /dev/null and b/sigi/static/img/interlegis.jpeg differ