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
--~--~-~--~~~---~--~~
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_
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
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
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:
5 matches
Mail list logo