djangosnippets.org: Latest snippets tagged with 'mod_wsgi'https://djangosnippets.org/tags/mod_wsgi/2011-05-17T10:41:46.950447-05:00Use the WSGIAccessScript Directive to secure static files based on the Django session
2011-05-17T10:41:46.950447-05:00LuckiDoghttps://djangosnippets.org/snippets/2438/<p>Add this to your apache config:</p>
<p><code><Directory /path/to/media>
WSGIAccessScript /path/to/access.wsgi
</Directory></code></p>
<p>Save the snippet as access.wsgi. Set up the paths, and do some authorization checking.</p>
Freely redistributable