This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
snurrbot-web/main/views.py
T
2011-09-25 01:32:02 +02:00

12 lines
355 B
Python

from django.http import HttpResponse
from django.shortcuts import render_to_response, get_object_or_404
from django.template import RequestContext
from main.models import *
def home(request):
entries = Entry.objects.all().order_by('created').reverse()
return render_to_response('home.html', locals(), context_instance=RequestContext(request))