Re: ImageField on admin

2006-11-03 Thread carlwenrich
I had the same problem. I fixed it by placing a forward slash in front of the image src in the template where I render the page. Seems to work fine. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: ImageField on admin

2006-11-03 Thread RajeshD
> > while the admin section links me > to:http://10.0.0.5:8000/mockups/2006/10/08/image.png > > ie, it skips 'site_media' in the URL. > Where exactly in the Admin do you see this incorrect link? And what does your entire Image class look like (i.e. does it have a get_absolute_url method, what's

ImageField on admin

2006-11-03 Thread Panos Laganakos
Defined a simple Image model: class Image(models.Model): image = models.ImageField(upload_to='mockups/%Y/%m/%d') settings.py: MEDIA_ROOT = '/home/panos/web-projects/media/panosart/' MEDIA_URL = 'http://10.0.0.5:8000/site_media/' urls.py: (r^site_media/(?P.*)$', django.views.static.serve'