Commit 63f92f4c authored by Cheska Hung's avatar Cheska Hung

complete stable working version

parent 089f3895
......@@ -3,7 +3,7 @@ from .views import DashboardView
urlpatterns = [
path('Dashboard/', DashboardView.as_view()),
path('', DashboardView.as_view()),
]
app_name = "Dashboard"
\ No newline at end of file
......@@ -2,6 +2,6 @@ from .models import Department
from django.views import generic
class DepartmentView(generic.ListView):
class DashboardView(generic.ListView):
model = Department
template_name = 'Dashboard/Dashboard.html'
......@@ -12,7 +12,8 @@ https://docs.djangoproject.com/en/3.2/ref/settings/
from pathlib import Path
from dotenv import load_dotenv
import os
DIRNAME = os.path.abspath(os.path.dirname(__file__))
load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
......@@ -39,7 +40,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'Dashboard',
'Dashboard.apps.DashboardConfig'
]
MIDDLEWARE = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment