Make sure you are serving the media fles usins django's static server
On Tuesday, January 27, 2015 at 1:31:54 AM UTC+1, bradford li wrote:
-- from django.conf import settings
urlpatterns += patterns('',
url(r'^media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT, 'show_indexes': False}), )
On Tuesday, January 27, 2015 at 1:31:54 AM UTC+1, bradford li wrote:
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:
http://127.0.0.1:8000/media/tumblr_ngotb4IY8v1sfie3io1_ 1280.jpg
Here is a gist of my code:
https://gist.github.com/liondancer/ 678752e8bf31cc7d2c63 Stackoverflow question:If anything else is needed please let me know!
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/28015f00-5b4c-45ea-97d5-d19955763c49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment