blob: fe0d89db5371e936e5ccdf831a0781c37dfb2630 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from links.models import Bookmark
from django.http import HttpResponse
from django.template import Context, loader
def index(request):
bookmark_list = Bookmark.objects.all().order_by("-date")[:100]
t = loader.get_template("links/links.html")
c = Context({
'bookmarklist': bookmark_list,
})
return HttpResponse(t.render(c))
|