code: def recent_photos(request):
      ''' returns all the images from the data base '''
      imgs = []
      for obj in Image_File.objects.filter(is_image=True).order_by("-date_created"):
          upurl = "/" + obj.upload.url
          thumburl = ""
          if obj.thumbnail:
              thumburl = "/" + obj.thumbnail.url
          imgs.append({'src': upurl, 'thumb': thumburl, 'is_image': True})
      return render_to_response('dashboard/browse.html', {'files': imgs}f recent_photos(request):
      ''' returns all the images from the data base '''
      imgs = []
      for obj in Image_File.objects.filter(is_image=True).order_by("-date_created"):
          upurl = "/" + obj.upload.url
          thumburl = ""
          if obj.thumbnail:
              thumburl = "/" + obj.thumbnail.url
          imgs.append({'src': upurl, 'thumb': thumburl, 'is_image': True})
      return render_to_response('dashboard/browse.html', {'files': imgs})
docs: returns all the images from the data base