Hi Adrian:
When placed together, I do get asked for Authentication from browser.
When good credentials are provided, I do get through but then an error
is displayed.
I would like to determine wether or not I am doing something wrong.
Otherwise, can log this intro Trac as a feature request?
-- Brian
More details
============
RHEL3
Django recently updated from SVN Head
Apache/2.0.54 (Unix) DAV/2 SVN/1.1.4 mod_python/3.1.4 Python/2.4.2
Server
httpd.conf:
<Location "/">
SetHandler python-program
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonPath "['/home/django/projects'] + sys.path"
PythonDebug On
AuthType basic
AuthName "example.com"
Require valid-user
SetEnv DJANGO_SETTINGS_MODULE myproject.settings
PythonAuthenHandler django.contrib.auth.handlers.modpython
</Location>
Displayed to browser:
Mod_python error: "PythonAuthenHandler
django.contrib.auth.handlers.modpython"
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py",
line 299, in HandlerDispatch
result = object(req)
File
"/usr/local/lib/python2.4/site-packages/django/contrib/auth/handlers/modpython.py",
line 20, in authenhandler
staff_only = _str_to_bool(options.get('DjangoRequireStaffStatus',
"on"))
TypeError: 'tuple' object is not callable
Apache's error log's say the same thing.