Putting picture thumbnails within admin page

27 views
Skip to first unread message

bradford li

unread,
Jan 26, 2015, 7:31:54 PM1/26/15
to django...@googlegroups.com


I am trying to put thumbnail pictures of my photos within my admin page. I am currently running into the issue where the thumbnail isn't displayed, when I click on thumbnail I am redirected to the homepage of my project with this as the URL: 


Stackoverflow question:


If anything else is needed please let me know! 




Collin Anderson

unread,
Jan 29, 2015, 8:41:46 AM1/29/15
to django...@googlegroups.com
Hi,

Any luck?

Try looking at the Network tab of the developer console to see what the errors are.

Collin

Nelson Varela

unread,
Jan 30, 2015, 8:59:13 AM1/30/15
to django...@googlegroups.com
Make sure you are serving the media fles usins django's static server

from django.conf import settings
urlpatterns
+= patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': False}), )
Reply all
Reply to author
Forward
0 new messages