def index(request): notes = Note.objects.all().order_by('-date_created') pagename = 'index' paged = make_page(request, notes) return render_to_response('index.html', RequestContext(request, locals()))
def blog_notebook_page(request, puser, curr_nb): notebooks = Notebook.objects.filter(user=puser) if curr_nb: notes = Note.objects.filter(notebook=curr_nb).order_by('-date_created') else: notes = Note.objects.filter(user=puser).order_by('-date_created') pagename = puser.username paged = make_page(request, notes) return render_to_response('blog_page.html', RequestContext(request, locals()))