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.

11 lines
358 B

  1. from django.shortcuts import render
  2. from django.http import HttpResponse
  3. # Create your views here.
  4. from linkstore.models import Category
  5. def index(request):
  6. # return HttpResponse("links will show up here...")
  7. categories = Category.objects.all()
  8. context = {'categories': categories}
  9. return render(request, 'linkstore/index.djhtml', context)