Right now, the frontend tends to construct URLs for individual photos. We do this by passing the photoDir in app.views.render_view and in map_page etc.
We should shove all of this back into Photo, so that the frontend can just do photo.front_url and photo.slide_url (or some other similar structure: we may want to have a dict that holds many urls for different resolutions, e.g.,) instead, and we don't have to expose the photos dir to the frontend at all.
Right now, the frontend tends to construct URLs for individual photos. We do this by passing the
photoDir
inapp.views.render_view
and inmap_page
etc.We should shove all of this back into Photo, so that the frontend can just do
photo.front_url
andphoto.slide_url
(or some other similar structure: we may want to have a dict that holds many urls for different resolutions, e.g.,) instead, and we don't have to expose the photos dir to the frontend at all.