diff options
Diffstat (limited to 'apps/photos')
-rw-r--r-- | apps/photos/utils.py | 4 | ||||
-rw-r--r-- | apps/photos/views.py | 7 |
2 files changed, 6 insertions, 5 deletions
diff --git a/apps/photos/utils.py b/apps/photos/utils.py index 24991b2..137fe9f 100644 --- a/apps/photos/utils.py +++ b/apps/photos/utils.py @@ -28,13 +28,13 @@ except ImportError: raise ImportError("Could not import the Python Imaging Library.") -from strutils import safestr +from utils.strutils import safestr from photos.models import Photo,PhotoGallery # Flickr Sync stuffs API_KEY = settings.FLICKR_API_KEY -from APIClients import FlickrClient +from utils.APIClients import FlickrClient EXIF_PARAMS = {"Aperture":'f/2.8',"Make":'Apple',"Model":'iPhone',"Exposure":'',"ISO Speed":'',"Focal Length":'',"Shutter Speed":'',"Lens":'','Date and Time (Original)':'2008:07:03 22:44:25'} diff --git a/apps/photos/views.py b/apps/photos/views.py index 5ccec00..861f00e 100644 --- a/apps/photos/views.py +++ b/apps/photos/views.py @@ -5,7 +5,6 @@ from django.http import Http404,HttpResponse from django.core import serializers -from view_wrapper import luxagraf_render from tagging.models import Tag,TaggedItem from photos.models import Photo,PhotoGallery from locations.models import Country, Region @@ -24,8 +23,10 @@ def gallery_list(request,page): return object_list(request, queryset=qs, template_name='archives/photos.html') def gallery(request,slug): - g = PhotoGallery.objects.get(set_slug=slug) - return luxagraf_render(request,'details/photo_galleries.html', {'object': g,}) + context = { + 'object': PhotoGallery.objects.get(set_slug=slug) + } + render_to_response('details/photo_galleries.html', context, context_instance = RequestContext(request)) def photo_json(request, slug): p = PhotoGallery.objects.filter(set_slug=slug) |