1👍
You can use {{img.image.url}}
to get absolute url of your image field.
I hope you have referred
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.FileField.storage
How do I include image files in Django templates?
How to show an image in template uploaded from admin panel Django 1.3
1👍
You may also need to update your projects urls.py with the following:
(r'^media/(?P<path>.*)$', 'django.views.static.serve', {
'document_root': settings.MEDIA_ROOT})
- [Answered ]-Making a django application running on 127.0.0.1:8000 accessible everywhere?
- [Answered ]-Django1.8 to have regular expression for url in url.py
- [Answered ]-How can i use variable in django while accessing models
Source:stackexchange.com