Is there a way for Apache to allow or deny a file download after checking with Django for permission?
That is, I want the user to have a permission within Django to determine if the user has the rights to a file. And, if the user has the permission, Apache would start the file download. Or, if the permission is not set for that user, the download is denied.
Thanks
Eric
As you are using Apache, take a look to
http://docs.djangoproject.com/en/1.2/howto/apache-auth/
http://code.google.com/p/modwsgi/wiki/AccessControlMechanisms