1. Run Django with FastCGI (frontend - lighttpd). Part of lighttpd config:
url.rewrite-once = (
...
"^(/.*)$" => "/mysite.fcgi$1",
)
2. Use digest auth example (or any else) from
django_restapi_tests/examples/authentication.py
3. Digest auth is impossible
In django_restapi/authentication.py, 170 fullpath is calculate as
request.META['SCRIPT_NAME'] + request.META['PATH_INFO']. With FastCGI
request.META['SCRIPT_NAME'] is "/mysite.fcgi/<resource-uri>/", but browser
responce only "/<resource-uri>/", so keys "response" on server and browser
are different.
I just remove "request.META['SCRIPT_NAME'] + " in my script =) but wait for
better solution.
Use trunk version of the django-rest-interface with some patches and
Kubuntu 7.10
Original issue reported on code.google.com by xar...@gmail.com on 30 Mar 2008 at 4:23
Original issue reported on code.google.com by
xar...@gmail.com
on 30 Mar 2008 at 4:23