Show a Dataset of images
# urls.py
url( r'^dataset/(?P<datasetId>[0-9]+)/$', views.dataset ),
# views.py
@login_required()
def dataset(request, datasetId, conn=None, **kwargs):
ds = conn.getObject("Dataset", datasetId)
return render_to_response('dataset.html', {'dataset': ds})
<!-- dataset.html -->
<html><body>
<h1>{{ dataset.getName }}</h1>
{% for i in dataset.listChildren %}
<img src="{% url 'webgateway.views.render_thumbnail' i.id %}" />
{{ i.getName }}
{% endfor %}
</body></html>
See
Creating an app documentation