Re: upload image
On Sun, Jun 17, 2012 at 2:33 AM, Satvir Toor <toor.satvir90@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.
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home