> > On Sun, Jun 17, 2012 at 2:33 AM, Satvir Toor <toor.satvi...@gmail.com> > wrote:
> but when i try to submit data it makes the upload file empty and gives > notification this field(file upload) is required. Make sure you set up the Form enctype correctly. (<form ... enctype="multipart/form-data">) MEDIA_ROOT = > '/usr/local/lib/python2.7/dist-packages/django/contrib/admin/media/' Media root is a directory that you want to upload files to. You'd probably want something more along the lines of /home/username/uploads or /var/html/uploads or /srv/html/uploads, etc... And then setup your front-end httpd server to serve the files from this directory as well. -- 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.