Hi there,
Before explanation here is the link to problematic code:
http://wklej.org/hash/968a35feef/
If one creates a model with imageField and uses it via admin
everything is just fine - model instances have the image field with
correct url:
photo = Image.objects.get(pk=1)
photo.image.url
'/media/blabla/photo.jpg'
If I upload the file manually, not via admin interface the image.url
is an absolute path to the image file:
photo2 = Image.objects.get(pk=1)
photo2.image.url
'/home/user/django_projects/myproject/media/blabla/photo.jpg'
Could someone explain me what am I doing wrong?
This happens on django 1.0 and latest django svn snapshot :(((