Simple django app to display links
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
359 B

from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
from linkstore.models import Category
def index(request):
# return HttpResponse("links will show up here...")
categories = Category.objects.all()
context = {"categories": categories}
return render(request, "linkstore/index.djhtml", context)