diff options
Diffstat (limited to 'fotos/views.py')
-rw-r--r-- | fotos/views.py | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/fotos/views.py b/fotos/views.py index 6b0fd91..4288fc8 100644 --- a/fotos/views.py +++ b/fotos/views.py @@ -1,18 +1,24 @@ -from elgarito.fotos.models import Album, Foto, Tag -from django.shortcuts import render_to_response, get_object_or_404 +from fotos.models import Album +from django.shortcuts import render_to_response from django.template import RequestContext + def index(request): lista_albums = Album.objects.all() - return render_to_response('fotos/index.html', RequestContext(request, - {'lista_albums': lista_albums})) + return render_to_response('fotos/index.html', + RequestContext(request, + {'lista_albums': lista_albums})) + def album(request): lista_albums = Album.objects.all() - return render_to_response('fotos/index.html', RequestContext(request, - {'lista_albums': lista_albums})) + return render_to_response('fotos/index.html', + RequestContext(request, + {'lista_albums': lista_albums})) + def foto(request): lista_albums = Album.objects.all() - return render_to_response('fotos/index.html', RequestContext(request, - {'lista_albums': lista_albums})) + return render_to_response('fotos/index.html', + RequestContext(request, + {'lista_albums': lista_albums})) |