From 535931095c38bbc6ddbd9320605228df13dd12f5 Mon Sep 17 00:00:00 2001 From: App Generator <51070104+app-generator@users.noreply.github.com> Date: Sat, 20 Jan 2024 19:07:47 +0200 Subject: [PATCH] Integrate Material Dashboard --- core/settings.py | 5 +++++ core/urls.py | 1 + home/views.py | 3 ++- requirements.txt | 4 ++++ static/img/logo-ct.png | Bin 0 -> 5756 bytes 5 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 static/img/logo-ct.png diff --git a/core/settings.py b/core/settings.py index 0670085..a1706d6 100644 --- a/core/settings.py +++ b/core/settings.py @@ -32,6 +32,7 @@ # Application definition INSTALLED_APPS = [ + 'admin_material.apps.AdminMaterialDashboardConfig', "django.contrib.admin", "django.contrib.auth", "django.contrib.contenttypes", @@ -140,3 +141,7 @@ # https://docs.djangoproject.com/en/4.1/ref/settings/#default-auto-field DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" + +LOGIN_REDIRECT_URL = '/' +# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend' diff --git a/core/urls.py b/core/urls.py index f6c25ec..3bd7348 100644 --- a/core/urls.py +++ b/core/urls.py @@ -18,6 +18,7 @@ urlpatterns = [ path("", include("home.urls")), + path('', include('admin_material.urls')), path("admin/", admin.site.urls), path("__debug__/", include("debug_toolbar.urls")), ] diff --git a/home/views.py b/home/views.py index 59e2134..f6f7bae 100644 --- a/home/views.py +++ b/home/views.py @@ -11,4 +11,5 @@ def index(request): context = { 'date': datetime.today().strftime('%Y-%m-%d %H:%M:%S'), } - return HttpResponse("Hello DJANGO! time is: " + context['date']) + #return HttpResponse("Hello DJANGO! time is: " + context['date']) + return render(request, 'pages/index.html', { 'segment': 'index' }) diff --git a/requirements.txt b/requirements.txt index 9afc133..d0fa72f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,7 @@ python-dotenv==1.0.0 whitenoise==6.5.0 gunicorn==21.2.0 django-debug-toolbar==4.2.0 + + +# UI +django-admin-material-dashboard==1.0.10 \ No newline at end of file diff --git a/static/img/logo-ct.png b/static/img/logo-ct.png new file mode 100644 index 0000000000000000000000000000000000000000..5f9cf4a5c1f036aef82af4cedd6cfd3b10ae4a30 GIT binary patch literal 5756 zcmc(D_dgrZ*FO>?wiq>nh}14>RcpnLQB=)RO|33M>{<~Nq18|nHA3xJrD)YiT3fB6 zHL6vkMa|ZV8c#mY^ACK#KRn;>5BHweeZ9^(_jT^Q=Y8Mj;BBl-Iaq~R>FDS<%#cR5 zG}-r`!NNqFYn*BeXo5b_*3^Kmb{MisM<<|RW~6TyM!%8I_FB~bVXv7ajK#=}5eSfw zS^zN6Tik@2xEjA(11LOdZM{zs1b$+mui7(if^k=YFLs2PJ+F3Wn^Y7h!l1TGuVUI{ z6A~R*&l8y#=t1z+Eo}DNyokV&%MqJ8zdnX~pMJk__VKOi_jT(2+3Z=)bc9rd#_UIL zrjIc~$^dUNdp5l)>i=NT)<=#%hb=psd4pLrYHOh%r=U?5%4H2xBl`>hEO~)nNa$(f zSHj7@yAQjMXUiS3A?kcs!25X6Z)bsq_fLc|NWm?-K+3oIQp7T!VoH?H2cc2Cse@*k z()v&A3qb-RK6qYi+iTm<=ns6*Gs3JvIyK4Tfxut#KZ+P}^z?A{BSMIMova_qTvy70 zrBBn&6pmN?ZDvCGqXU6(l+mRCz&-#<%uLlx^~~lEXBR70ZD(jknG0zeagqxA_XDj8 zC{-nDkeW#v)y;XH#==K-=3jYz3hWy4KO(f5CPEH?_Xo`!jG$V!#U>;lZxlhuM#RCz zssY9@c6YL?#CF4zX+eefKgPgxJ0i_2Q?MRUm2ve;>2LO3_X-DV92VpN(Blx(@e1dz zNUW}7$hWdx*w!Z|-t6dp6o1VUf@W6Bc+vSpIoV~$zMZ?T4zviaXVG@iF1fK@WP+8` zWbzp+>KS=;Vp2~R1iqeFEcebCvdNXo{DZN$JR|(T3sjGQ-sT&Z=O&prf4`p@`8*a> z1G(Sf#_;emGTN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