carto_1_1 : passer une variable au template
[davin.git] / ateliers / django / carto_1_1 / views.py
1 # -*- encoding: utf-8 -*-
2
3 from django.shortcuts import render_to_response
4 from django.template import Context, RequestContext
5
6 def home(request):
7 variable = "Davin"
8 c = {
9 'var' : variable,
10 }
11 return render_to_response("home.html", Context(c), context_instance = RequestContext(request))