2👍
✅
If anyone comes across this, the problem was the link to the template.
i.e
description_template = “events_description.html”
I assumed django would handle checking the template directory, however you have to specify where the template is located.
i.e
description_template = “events/events_description.html”
0👍
I take it that you are trying to subscribe to the feed via email… correct?
To do this, you need to add a couple things.
First, import the “content” extension. This is done in the opening <rss>
element like this:
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
Then, add the full desription to an element like this:
<content:encoded><![CDATA[
<p>The full description goes here bla bla bla.</p>
<p>You can use HTML tags too.</p>
]]></content:encoded>
This is in addition to the regular description tag required by RSS and can be added to each <item>
element.
- [Answered ]-Django rest framework does not show utf8 words
- [Answered ]-Django: Display attributes of Person model
Source:stackexchange.com