Files @ 252f29af8119
Branch filter:

Location: website/www/conservancy_wrapper.py

bkuhn
Make sure return values match title.

I received this error from the feeds:

AttributeError at /feeds/news/

'PressRelease' object has no attribute 'title'

Request Method: GET
Request URL: http://sfconservancy.org/feeds/news/
Django Version: 1.4.5
Exception Type: AttributeError

'PressRelease' object has no attribute 'title'
Exception Location: /var/www/conservancy/feeds.py in item_title, line 46

I think this change fixes that.
1
2
3
4
5
6
7
8
# req.subprocess_env is not set when the PostReadRequestHandler runs,
# so we just bypass it altogether and set the relevant variable here.
# See deployment documentation for more info.
from os import environ
environ["DJANGO_SETTINGS_MODULE"] = 'conservancy.settings'
environ["CANONICAL_HOSTNAME"] = 'sfconservancy.org'

from modpythoncustom import *