def index(request): ids = ['foo','bar','baz'] obj = { 'title': 'Title', 'desc': 'Description', 'img': 'http://docs.python.org/_static/py.png' } objects = dict([ (id,obj) for id in ids ] ) return render_template(request, 'index.html', { 'objects': objects, })
def delete(request): id = request.urlvars.get('id', None) return render_template(request, 'index.html', { })
def update(request): id = request.urlvars.get('id', None) return render_template(request, 'show.html', { })
def create(request): return render_template(request, 'show.html', { })