Finalized the app's urls.py, models.py, and admin.py

parent c78436d8
from django.shortcuts import HttpResponse
from .models import Department, WidgetUser
def all_departments(request):
department_list = Department.objects.all()
def all_widget_users(request):
widget_users_list = WidgetUsers.objects.all()
def index(request):
return HttpResponse("placeholder")
\ No newline at end of file
return HttpResponse("Welcome to Widget!<br> <br>"
"WIDGET USERS:<br>")
......@@ -4,4 +4,4 @@ from django.urls import include, path
urlpatterns = [
path('Dashboard/', include('Dashboard.urls', namespace="Dashboard")),
path('admin/', admin.site.urls),
]
]
\ No newline at end of file
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