On 11-12-11 19:54, Hassan wrote:
Dear ALl ,
i am having some problems in understanding uploading in django , i
want to upload videos and play them , what is the best way to do
that ?
In principle, you'll need a model with a filefield. This'll store the
actual uploaded video file in the media directory.
Look at https://docs.djangoproject.com/en/dev/topics/files/ , this'll
tell you what you need to know.
Videos mean an extra problem: how do you present it to the user? Do you
convert it yourself to h264 or flash or whatever? Do you provide a plain
file download?
Alternative is to upload it to youtube/smugmug/whatever and to just
store a URL in your model, pointing at the correct embed URL.
Reinout
--
Reinout van Rees http://reinout.vanrees.org/
rein...@vanrees.org http://www.nelen-schuurmans.nl/
"If you're not sure what to do, make something. -- Paul Graham"
--
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.