summaryrefslogtreecommitdiff
path: root/fotos/views.py
diff options
context:
space:
mode:
authorJoaquín Aguirrezabalaga <kinote@kinote.org>2014-01-03 01:06:22 +0100
committerJoaquín Aguirrezabalaga <kinote@kinote.org>2014-01-03 01:06:40 +0100
commitf05c5e2d8a705df1c94b63a978267b291c893bbb (patch)
treea8bd95e9cc2c0bd48be57893ccc4ddec63152d29 /fotos/views.py
parent802a74102b9073e961ef1d7a487f99b962d76512 (diff)
downloadelgarito-master.tar.gz
elgarito-master.zip
django 1.6HEADmaster
Diffstat (limited to 'fotos/views.py')
-rw-r--r--fotos/views.py22
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}))