Created
March 29, 2009 21:49
-
-
Save mstepniowski/87528 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create your views here. | |
from django.shortcuts import render_to_response | |
from gallery.models import Gallery | |
def gallery_list(request): | |
galleries = Gallery.objects.all() | |
return render_to_response('gallery/gallery_list.html', {'galleries': galleries}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment