Gábor Farkas wrote:

hi,

i have an ImageField in a model.

when i use the admin interface, everything is fine, except one thing:

the ImageField part consists of:

======
Currently: LINK
Change: <textfield> <button>
======

and the LINK is wrong. it's content is ok, but the HREF is empty.
example:

Currently: <a href="" > logos/firstlogo.png </a><br />

so when you click on it, you just get the actual page.

i thought that it should take me to the submitted file...

MEDIA_URL, MEDIA_ROOT are set up correctly.
the file gets uploaded correctly to the designated folder.

any ideas what's wrong?

one more thing. the same thing happens with my FileField field also.

so it really seems to be a config problem.. but which setting?

my settings:
MEDIA_ROOT = '/home/gabor/django/simple/static'
MEDIA_URL = 'http://localhost:8000/static/'


thanks,
gabor

Reply via email to