[Answered ]-Access control for static resources

1👍

The easy way is to use django send_file[1] to do it. This is easy to implement but does not scale well. I use it to serve dynamically generated reports. The only advantage of this solution is that it’s all python code.

The better way is to use the information on sanmai’s links. You can also take a look here: http://www.sensibledevelopment.com/2010/11/django-sendfile-an-for-abstraction-large-file-serving-in-django/ for some django specific information.

1: http://djangosnippets.org/snippets/101/

1👍

Use one or more MD5 hexdigest of some attribute as part of the image path; the path will be pretty random.

Leave a comment