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