Skip to content

Commit

Permalink
main
Browse files Browse the repository at this point in the history
  • Loading branch information
ixnur committed Aug 17, 2023
1 parent 387a588 commit 9f0927f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/envanter/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
from django.shortcuts import render
from .models import Category, Component
from django.http import HttpResponse




def index(request):
Expand All @@ -13,3 +16,4 @@ def index(request):
categories = Category.objects.all()
components = Component.objects.all()
return render(request, 'index.htm', {'categories': categories, 'components': components})

0 comments on commit 9f0927f

Please sign in to comment.