def index(request): fossils_query = Fossil.all().order('-date') fossils = fossils_query.fetch(10) login_linktext, login = user_stuff(request) template_values = { 'fossils': fossils, 'login': login, 'login_linktext': login_linktext, } return render_to_response('index.html',template_values)
def show(request,slug): fossils_query = Fossil.all().filter('slug =', slug) fossils = fossils_query.fetch(1) login_linktext, login = user_stuff(request) template_values = { 'fossils': fossils, 'login': login, 'login_linktext': login_linktext, } return render_to_response("fossil.html",template_values)