[Answer]-Django 1.6 Why can't I display avatars?

1👍

✅

The form entry given by django is direct url to access that image. If you want to know is your urls are configured properly then click on that link to check the media configuration. If you get 404 error try the @Ambroise’s example. To access image in your image tag you need to provide

profile_list = [('头像',profile_user.avatar.url)

Check this example for your reference

http://lightbird.net/dbe2/forum.html#edit-profile-template

hope it helps 🙂

Leave a comment