Django: Password protect photo url's?

Posted by MikeN on Stack Overflow See other posts from Stack Overflow or by MikeN
Published on 2010-04-30T19:18:38Z Indexed on 2010/04/30 19:57 UTC
Read the original article Hit count: 448

Filed under:
|

From my Django application I want to serve up secure photos. The photos are not for public consumption, I only want logged in users to have the ability to view them. I don't want to rely on obfuscated file id's (giving a photo a UUID of a long number) and count on that being hidden in my media folder. How would I store a photo securely on disk in my database and only stream it out to an authenticated session?

© Stack Overflow or respective owner

Related posts about django

Related posts about django-imagefield