Chicago Django/Python Blog - Imaginary Landscape

Permission Based File Serving

November 17, 2009 3:15 p.m.

One issue I've run into a couple times while working with Django is the need to serve files to users based on permissions. The first situation occurred with a store we were building that would allow for electronic versions of books to be sold. These books would typically be distributed in PDF format but overall to the story, the format is irrelevant. In this scenario I needed to be able to take the ID of a book and return a PDF download to the user. However, I only wanted to do this if the user passed proper authentication and ...

Read More


Updated 11/17/09 @ 03:15PM CST by markr

Bookmark and Share

Categories: Django Python

Tags: apache django nginx permissions python user


(877) 275-9144 Toll Free | M-F:9-5

Imaginary Landscape, LLC 5121 North Ravenswood Avenue Chicago, Illinois 60640