Well, this may not be the best idea

On a production server, you'd make it differently
Sure, you could do it this way, but Django should serve dynamic context, so unless you are rendering images on your machine, you should use Nginx, or apache to serve your images, aka. staticfiles/media

you'd just point your user to /static/image.jpeg
and apache/nginx would take care of the rest


here is a example django/nginx/uwsgi configuration that I use on my server

https://nemec.lu/en/how-to/~django-nginx-uwsgi-ssl


Enjoy!


On 08/06/2013 11:48 AM, Hélio Miranda wrote:
Hi
I have a doubt, to show a picture do this:
*return HttpResponse (photo, content_type = 'image / jpeg')*

And if I show you a video as you want to do? Someone can help me?
--
You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to