Re: ImageField admin preview not working

2010-02-28 Thread lockwooddev
(r'^static/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), the diffirence. (r'^static_media/(?P.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}), Thanks a lot!! :-) It cost me one day this tiny problem.. -- You

Re: ImageField admin preview not working

2010-02-28 Thread Malcolm Box
Read your settings.py file carefully: - you've said that the MEDIA_URL is / - but that Django is only configured to serve static content from /static So when the photo is uploaded, it's stored in /photos/x.jpg, which you've told Django is accessible via the URL /photos. But this gives

ImageField admin preview not working

2010-02-28 Thread lockwooddev
Hi people, I started working on an image gallery with Django and I'm stuck. I suppose that my static files on the development server are not configured properly. I have the following models.py code: from django.db import models from PIL import Image class Photo(models.Model): name =