On 11-7-2012 12:19, Dott. Tegagni Alessandro wrote: > immagine_5 = models.ImageField (upload_to = > "/home/alessandro/Scrivania/progetto/media/photos/custodia/", ... > MEDIA_URL ='http://127.0.0.1:8000/'
This is wrong. The url for this file generated by django will now be: <http://127.0.0.1/home/alessandro/Scrivinia/progretoo/media/photos/custodia/> What you want is: upload_to='/photos/custodia/' MEDIA_URL = '/media/' MEDIA_ROOT = ( '/home/alessandro/Scrivania/progetto/media/', ) -- Melvyn Sopacua -- 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.