次の問題があります。プロジェクトのジャンゴ - ピストンAPIのdjangoフィードのパブ日付が間違っています
handlers.py:これは(django.contrib.syndicationで作成した)プロジェクトのフィードに影響を与えるよう
....
# "need" to set this for datetime.strftime()
locale.setlocale(locale.LC_TIME,'de_AT.UTF-8')
class ItemOverviewHandler(BaseHandler):
...
@classmethod
def date(self, item):
# because of the setlocale() call the datestring is in german
# that's good
return item.somedatefield.date.strftime("%d. %B %Y")
...
が、今それはそう:
def item_pubdate(self, item):
return item.pub_date #datetime field
# the rss look's like this
# that's not good
<pubDate>Die, 17 Aug 2010 14:00:00 +0200</pubDate>
(これはドイツのDie == Dienstag ==火曜日には、rfcに準拠した日付ですが、無効です。
私はピストンアピ応答がドイツ語になる必要があります(完了)。しかし、フィードのpubDateは英語でなければなりません(どのようにこれを達成するか分かりません)。
提案がありますか?
これは、あなたのロケールがオーストリア語に設定されている(したがってフィードがRFCに準拠していない)というスプリット秒間にフィードの同時要求に何らかの影響を与えますか? –