From a48bb3a0cf90e8984c1536e3c2e706f7ddc168cc Mon Sep 17 00:00:00 2001 From: ndu Date: Tue, 3 Sep 2024 11:00:04 +0100 Subject: [PATCH] chore(update): add responsive admin-UI --- server/core/config/admin_interface.py | 0 server/core/config/base.py | 8 ++++++-- .../admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku.svg | 5 +++++ .../favicon/logo-dark.DzLhcFy5_1KLJku_7UoCwlU.svg | 5 +++++ .../admin-interface/logo/logo-dark.DzLhcFy5_1KLJku.svg | 5 +++++ .../logo/logo-dark.DzLhcFy5_1KLJku_fXeh5hb.svg | 5 +++++ server/requirements.txt | 6 +++--- 7 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 server/core/config/admin_interface.py create mode 100644 server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku.svg create mode 100644 server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku_7UoCwlU.svg create mode 100644 server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku.svg create mode 100644 server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku_fXeh5hb.svg diff --git a/server/core/config/admin_interface.py b/server/core/config/admin_interface.py new file mode 100644 index 0000000..e69de29 diff --git a/server/core/config/base.py b/server/core/config/base.py index c4e19ee..964e2a6 100644 --- a/server/core/config/base.py +++ b/server/core/config/base.py @@ -34,7 +34,8 @@ # Application definition DJANGO_APPS = [ - 'jazzmin', + 'admin_interface', + 'colorfield', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', @@ -184,9 +185,12 @@ "staticfiles.W004" ] +#Django-admin-interface config +X_FRAME_OPTIONS = "SAMEORIGIN" +SILENCED_SYSTEM_CHECKS = ["security.W019"] + # Tinymce API Config TINYMCE_API_KEY = os.getenv('TINYMCE_API_KEY') -from .jazzmin import * from .celery_config import * from .mail import * \ No newline at end of file diff --git a/server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku.svg b/server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku.svg new file mode 100644 index 0000000..35150ab --- /dev/null +++ b/server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku_7UoCwlU.svg b/server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku_7UoCwlU.svg new file mode 100644 index 0000000..35150ab --- /dev/null +++ b/server/media/admin-interface/favicon/logo-dark.DzLhcFy5_1KLJku_7UoCwlU.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku.svg b/server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku.svg new file mode 100644 index 0000000..35150ab --- /dev/null +++ b/server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku_fXeh5hb.svg b/server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku_fXeh5hb.svg new file mode 100644 index 0000000..35150ab --- /dev/null +++ b/server/media/admin-interface/logo/logo-dark.DzLhcFy5_1KLJku_fXeh5hb.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/server/requirements.txt b/server/requirements.txt index 8a2d8a8..301f993 100644 --- a/server/requirements.txt +++ b/server/requirements.txt @@ -14,12 +14,11 @@ click-repl==0.3.0 cron-descriptor==1.4.3 cryptography==43.0.0 Django==5.0.8 +django-admin-interface==0.28.8 django-celery-beat==2.6.0 -django-ckeditor==6.7.1 -django-ckeditor-5==0.2.13 +django-colorfield==0.11.0 django-cors-headers==4.4.0 django-filter==24.2 -django-jazzmin==3.0.0 django-js-asset==2.2.0 django-shortcuts==1.6 django-timezone-field==7.0 @@ -42,6 +41,7 @@ python-crontab==3.2.0 python-dateutil==2.9.0.post0 python-decouple==3.8 python-dotenv==1.0.1 +python-slugify==8.0.4 PyYAML==6.0.1 redis==5.0.8 referencing==0.35.1