Skip to content

Instantly share code, notes, and snippets.

@cansadadeserfeliz
Created October 1, 2014 15:14
Show Gist options
  • Select an option

  • Save cansadadeserfeliz/91c0dc308c4e40a331f7 to your computer and use it in GitHub Desktop.

Select an option

Save cansadadeserfeliz/91c0dc308c4e40a331f7 to your computer and use it in GitHub Desktop.
Django: get absolute url (for image) in views
request.build_absolute_uri(user.avatar.url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment