Systers, an AnitaB.org community
[Mentorship Backend] Fetch user profile picture from GRAVATAR
Currently, the users have an option to set a URL for their profile pictures. Another PR is underway for using AWS for the same, by uploading the images first. However, for a quicker option, it will be good to fetch the profile pictures from GRAVATAR.
Instead of fetching and saving the image, one just needs to grab the URL from GRAVATAR and store it into the profile picture field on the database.
Pre-requisites
- Have a local working setup of the Mentorship Backend repo.
Steps:
Modify files as necessary to implement the following feature -
- When the user confirms their email, the URL of the GRAVATAR associated with that email is fetched
- The fetch URL is stored in the
photo_url
of the user's entry in the database
Resources:
- If you need help or get lost, post a response to our questions topic in our #gci stream.
- Systers Mentorship Backend GitHub Repository
- Python GRAVATAR documentation
Work Submission:
Create a Pull Request to the issue linked with this task.
Task tags
Students who completed this task
_daksha_, i_maier, HardikJH