carto_1_1 : URL avec paramètres
[davin.git] / ateliers / django / carto_1_1 / annuaire / views.py
1 # -*- encoding: utf-8 -*-
2
3 from django.shortcuts import render_to_response
4 from django.template import Context, RequestContext
5
6 from carto_1_1.annuaire.models import Etablissement
7
8
9 def etablissement_detail(request, id):
10 etablissement = Etablissement.objects.get(id=id)
11 c = {
12 'etablissement': etablissement,
13 }
14 return render_to_response("annuaire/etablissement_detail.html", Context(c), context_instance = RequestContext(request))