On Fri, May 13, 2011 at 1:44 AM, pankaj sharma <new.pankajsha...@gmail.com>wrote:
> Hello friends,. > i want to upload some files to my database and show it to user .. > how to add an filefield option to models.py and how to show them in > admin.py. > and how to let the users download the files... > > Do you really want to store files directly in database? I think it is a waste of valuable database storage which is more expensive than file system storage and also obtaining large amount of file data from database is inefficient. The better way is to store only references to files placed somewhere under your MEDIA_ROOT tree. -- 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.