{"version":"1.0","type":"rich","title":"Gist 9766998","description":"This example shows how a Django-based website displays news activities either as a full list or as a single detail page, depending on whether an extra URL segment is provided. It queries the `Activity` model from the `alban_way` app, rendering all activities into an `activities.html` template or a specific activity into `activity.html`. The code uses Django’s `render_to_response` with `RequestContext`, `Http404` for missing items, and `HttpResponsePermanentRedirect` for URL handling, while relying on the CMS’s `Page` model for context. The data source is the Django ORM, with templates chosen dynamically based on URL structure.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-9766998?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}