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.
 
 
 

9 lines
327 B

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