Saturday, December 27, 2014

Re: Serving mov file with Django

On 2014-12-27 10:29, Hanley Hansen wrote:
> I'm using the simple backend:
>
> SENDFILE_BACKEND = 'sendfile.backends.xsendfile'

Your initial email mentions running Apache. Are you seeing this on
an Apache server, or are you seeing it on the development server?
Also, how are you connecting Django to Apache? With mod_wsgi or some
other method?

You'd want to use the corresponding back-end for whichever deployment
environment you're using. Thus, if you're using Apache+mod_wsgi, you'd
want to use

SENDFILE_BACKEND = 'sendfile.backends.mod_wsgi'

If you have Apache+mod_xsendfile or lighttpd, you'd use the setting
you have (which suggests that you don't have mod_xsendfile enabled).

-tkc


--
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+unsubscribe@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.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/20141227165703.35997a16%40bigbox.christie.dr.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment