I added a ImageField(upload_to = ' ing/media/') into my model. MEDIA_ROOT = '/home/huzhenghui37/ppcat.huzhenghui37.net/' in settings.py. When I used this field in admin through <input type="file"> (a file-upload widget), i chose an image ( /home/ huzhenghui37/faceicon.jpg ) and save.
Then i got the error: Request Method: POST Request URL: http://127.0.0.1/admin/ing/meta/1/ Exception Type: IOError Exception Value: [Errno 13] Permission denied: u'/home/huzhenghui37/ ppcat.huzhenghui37.net/ing/media/faceicon.jpg' Exception Location: /usr/lib/python2.5/site-packages/django/db/models/ base.py in _save_FIELD_file, line 404 Python Executable: /usr/bin/python Python Version: 2.5.1 At the end of Traceback: /usr/lib/python2.5/site-packages/django/db/models/base.py in _save_FIELD_file 404. fp = open(full_filename, 'wb') ... It seems that python cannot write the img file, faceicon.jpg, into the upload dir. I've checked and changed the permission of /home/ huzhenghui37/ppcat.huzhenghui37.net/ing/media/ into 777. But it still doesn't work. I've no idea where the problem is. Anybody can help me out? Thanks a million. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

