Skip to content

Commit

Permalink
Integrate Material Dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed Jan 20, 2024
1 parent b526ae5 commit 5359310
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
# Application definition

INSTALLED_APPS = [
'admin_material.apps.AdminMaterialDashboardConfig',
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
Expand Down Expand Up @@ -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'
1 change: 1 addition & 0 deletions core/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
]
3 changes: 2 additions & 1 deletion home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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' })
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Binary file added static/img/logo-ct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5359310

Please sign in to comment.