Remove the fwdslash in front image = models.ImageField(upload_to='toy_images/')
It will work On 11/7/07, Stupid Dustbin <[EMAIL PROTECTED]> wrote: > > > Hi, > > recently I decide to try out the ImageField but it gives me some > problems. > > in my models it is > > image = models.ImageField(upload_to='/toy_images/') > > in my settings.py here are my media settings > > MEDIA_ROOT = '/media/' > > MEDIA_URL = MEDIA_URL = 'http://localhost:8000/media/' > > ADMIN_MEDIA_PREFIX = '/admin_media/' > > The image doesn't get uploaded and I'm unable to figure out what > wrong. :(. > > Thanks > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---