Hey there,
I have been looking for a solution to make a file download with prior
authentication ...
Until now the only way I have to have a login page, after a successful
login the users will be provided the link to the file and they can then
download it.
But this is not really "protected" since they can make the link public
once they have it and everyone can download without prior login.
I have used:
(r'^site_media/(?P<path>.*)$', 'django.views.static.serve',
{'document_root': '/path/to/media'})
Thanks!
Katja
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---