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

parent c78436d8
from django.shortcuts import HttpResponse 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): def index(request):
return HttpResponse("placeholder") return HttpResponse("Welcome to Widget!<br> <br>"
\ No newline at end of file "WIDGET USERS:<br>")
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