dhmit / paris_1970

Fall 2020 Project: This was Paris in 1970
9 stars 5 forks source link

Fixing the broken links on the photographer page #261

Closed bukunmishodipo closed 2 years ago

bukunmishodipo commented 2 years ago

The previous implementation of the photographer's page was loading photos that were stored directly in the codebase, however we have a large number of photos. I updated 'urls.py' to add a file path that returns one photo from a given photographer and wrote the function 'get_photographer_photos' in 'views.py' that executes the function when it's called. 'PhotographerListView.js' was updated to use this file path for each photographer being loaded on the page. Photos are currently not being generated due to the photos currently not being linked to photographers on the backend, but once that is sorted, things should be working.