djangosnippets.org: Latest snippets posted by sim1234https://djangosnippets.org/users/sim1234/2019-04-17T06:53:36.356646-05:00sim1234Django nginx sendfile example
2019-04-17T06:53:36.356646-05:00sim1234https://djangosnippets.org/snippets/10664/<p>Use nginx sendfile (X-Accel-Redirect) function to serve files but pass traffic through django. Can be used to serve media files only to logged-in users.</p>
Freely redistributable