django-rss

    3熱度

    2回答

    我使用Django的訂閱框架,它是非常好的,非常直觀和易於使用。但是,我認爲在HTML中創建鏈接時存在問題。 例如: <link rel="alternate" type="application/rss+xml" title="{{ feed_title }}" href="{{ url_of_feed }}" /> Link的HREF屬性可以很容易地發現,只要使用reverse() 但是,

    0熱度

    1回答

    伊夫定義AA級,從django.contrib.syndication.feeds.Feed繼承 class Rss(Feed): ... def item_title(self, item): return "Hello" def item_description(self, item): return "Test" 的問題是什麼返回從方法IT

    2熱度

    1回答

    我正在爲基於Django的博客設置RSS提要。我得到500錯誤,當我嘗試訪問的網址: $ curl -I http://172.16.91.140:8000/blogg/feeds/latest/ HTTP/1.0 500 INTERNAL SERVER ERROR WSGIServer是報告無非 [25/Aug/2011 20:21:41] "HEAD /blogg/feeds/lates

    1熱度

    1回答

    http://docs.djangoproject.com/en/dev/ref/contrib/syndication/介紹使用飼料類的方式,它很適合我,但它需要的URL,像http://example.com/rss/feedid/parameters/ 我需要它是http://example.com/feedid/parameters/rss/ 如何做到這一點?

    1熱度

    2回答

    我正在嘗試生成完整的RSS提要,但是當在Mail中加載提要時,它只顯示標題,並在底部顯示更多鏈接。我嘗試了幾種不同的選擇。但似乎沒有任何工作。 我想在我的模塊中生成飼料與幾個飼料的組合。 下面是代碼我曾嘗試: class LatestEvents(Feed): description_template = "events_description.html" def title

    0熱度

    1回答

    什麼是在Django中使用基於日期範圍的rss feed的方法。例如,如果我有以下類型的django rss feed模型。 from django.contrib.syndication.feeds import Feed from myapp.models import * class PopularFeed(Feed): title = '%s : Latest SOLs'

    0熱度

    1回答

    如何將圖像添加到RSS訂閱,這裏是我的代碼片段 class ArticlesRss(Feed): description_template = 'feeds/city_description.html' def get_object(self, request, categoryid): if categoryid == 'all': return F