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

  1. Have a local working setup of the Mentorship Backend repo.

Steps:

Modify files as necessary to implement the following feature -

  1. When the user confirms their email, the URL of the GRAVATAR associated with that email is fetched
  2. The fetch URL is stored in the photo_url of the user's entry in the database

Resources:

Work Submission:

Create a Pull Request to the issue linked with this task.

Task tags

  • python
  • profile
  • gravatar
  • backend

Students who completed this task

_daksha_, i_maier, HardikJH

Task type

  • code Code
close

2019