refact ergo + page perso (vide)
[auf_rh_dae.git] / project / views.py
CommitLineData
fd5f1d55 1# -*- encoding: utf-8 -*-
a16928b9 2from django.contrib.auth.decorators import login_required
fd5f1d55 3from django.shortcuts import render_to_response
4from django.template import RequestContext
5
a16928b9 6@login_required
fd5f1d55 7def index(request):
8 return render_to_response('index.html', {}, RequestContext(request))
3411ac33 9
10def erreur404(request) :
11 c = {
12 'user':request.user,
13 }
14 return render_to_response('404.html', c,
15 context_instance = RequestContext(request))
16
17def erreur500(request) :
18 c = {
19 'user':request.user,
20 }
21 return render_to_response('500.html', c,
22 context_instance = RequestContext(request))
23
24def erreur550(request) :
25 c = {
26 'user':request.user,
27 }
28 return render_to_response('550.html', c,
29 context_instance = RequestContext(request))