yi huang wrote:
> What's wrong?
> 
> Request Method:       GET
> Request URL:  http://localhost/
> Exception Type:       KeyError
> Exception Value:      'REQUEST_URI'
> Exception Location:
> D:\python\Python24\lib\site-packages\feedjack-0.9.6-py2.4.egg\feedjack\views.py
> in initview, line 31
> 

views.py, line 31 says:
site_id, cachekey = fjlib.getcurrentsite(request.META['HTTP_HOST'],
request.META['REQUEST_URI'], request.META['QUERY_STRING'])

However, Django's builtin webserver does not provide a 'REQUEST_URI' key
in the environment -- instead it gives you PATH_INFO.

So change line 31 to this:
site_id, cachekey = fjlib.getcurrentsite(request.META['HTTP_HOST'],
(request.META.get('REQUEST_URI') or request.META.get('PATH_INFO') or
'/'), request.META['QUERY_STRING'])

... and I think it will work for you.

Feedjack is indeed cool!

-- Wade Leftwich
Ithaca, NY



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to