Hello,
I'm struggling a little to get apache configured to only
allow access
to some static media (image files in different resolutions,
according
to the permissions).
These are the directives i give for the location of the
medium sized
images:
...
SetHandler python-program
PythonHandler django.core.handlers.modpython
PythonPath "['/home/django-projects'] + sys.path"
PythonOption DJANGO_SETTINGS_MODULE my_proj.settings-apache
PythonDebug On
AuthType digest
AuthName "members"
AuthBasicAuthoritative Off
Require valid-user
PythonOption DjangoPermissionName my_proj.medium_images
PythonAuthenHandler django.contrib.auth.handlers.modpython
...
This doesn't seem to work to bad, but when the user is
logged in and
wants to view one of the protected files the usual prompt
pops up and
asks to reenter the credentials. Is that the normal
behaviour or is
there some way to pass on the cookie to
auth.handlers.modpython and
let the user pass right away?
sean
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|