Re: get_FOO_url() returns empty string

2007-07-13 Thread wolfds
Collin Grady schrieb: > You're missing the trailing slash on MEDIA_URL though, so get_img_url > won't get the proper path. Collin, that was my second fault, which came up after correcting my program as Jonathan described. Thank you, Wolf --~--~-~--~~~---~--~~

Re: get_FOO_url() returns empty string

2007-07-13 Thread wolfds
Jonathan Buchanan schrieb: > wolfds wrote: > > I ran into a problem which I tried to solve for several hours now. The > > situation is simple and straightforward: > > > > models.py: > > > > class Foo(models.Model) > > img = model.ImageField(upload_to='pix') > > > > settings.py: > > > > MEDIA_

Re: get_FOO_url() returns empty string

2007-07-12 Thread Collin Grady
You're missing the trailing slash on MEDIA_URL though, so get_img_url won't get the proper path. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-user

Re: get_FOO_url() returns empty string

2007-07-12 Thread Jonathan Buchanan
wolfds wrote: > I ran into a problem which I tried to solve for several hours now. The > situation is simple and straightforward: > > models.py: > > class Foo(models.Model) > img = model.ImageField(upload_to='pix') > > settings.py: > > MEDIA_ROOT = '/home/wolf/appl/media/' > MEDIA_URL = 'h

get_FOO_url() returns empty string

2007-07-12 Thread wolfds
I ran into a problem which I tried to solve for several hours now. The situation is simple and straightforward: models.py: class Foo(models.Model) img = model.ImageField(upload_to='pix') settings.py: MEDIA_ROOT = '/home/wolf/appl/media/' MEDIA_URL = 'http://my.host.de/media' foo.html: