hi all, what i am trying to do is as follows (development server ): 1) upload an image to my media/userimage/ directory and save the location in mysql ( this is successful ) 2) retrive the image by showing on a generated html page. But my image is not showing as if the tag src url is wrong.
However, if i were to right click and copy the generated url of my image and paste it on a new browser window, the image shows up. Details of my code is found here: http://dpaste.com/66164/ I've followed the instructions on http://docs.djangoproject.com/en/dev/howto/static-files/ and tried various methods for images ( in views.y ) such as: images_to_view.image images_to_view.image.url images_to_view.image.path All three could not work. Any advice on how i can fix this problem? Best Regards. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---