[Answer]-ImageField upload_to in django 1.6 not displaying images to template

1👍

Please make sure you have an entry in urls.py to server the static files, if not add this to urls.py file..

urlpatterns += patterns('',
   (r'^media/(?P<path>.*)$', 'django.views.static.serve', {
       'document_root': settings.MEDIA_ROOT}))

Now to get the image you should use an image tag like this…

  <img src="{{ frame.image.url }}" />

Hope this helps.

Leave a comment