Django RSS feed has the domain specified in example.com

I can get the output for the rss channel, but the domain in the link of the http://example.com element instead of the domain that I use in Feed.link ( http://www.mydomain.com/blog ). What do I need to do to get "mydomain.com" instead of "example.com"?

Below is the generated rss channel:

<?xml version="1.0" encoding="utf-8"?> <rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> <channel> <title>MyDomain Blog</title> <link>http://www.mydomain.com/blog</link> <description>insights and new developments in creating Pushstack</description> <atom:link href="http://example.com/blog/rss/" rel="self"></atom:link> <language>en-us</language> <lastBuildDate>Mon, 31 Jan 2011 19:41:42 -0000</lastBuildDate> <item> <title>Example</title> <link>http://example.com/blog/example</link> <description></description> <guid>http://example.com/blog/example</guid> </item> </channel> </rss> 

In addition, the browser header (OS X Chrome) says: "NameError at / blog / rss /". Not sure if this is what always appears or something else is wrong.

+7
source share
3 answers

example.com is a domain that is automatically inserted into the database through the Sites structure.

You can edit the site in admin: http://yourserver.com/admin/sites/site/

+14
source

It is right. You can also update it directly from DDBB from the django_site table if you are not using an administrator.

Regards, Martin

0
source

The atom: link value by default refers to information in the site structure, but you can override it by setting the feed_link property in your feed class, for example:

 feed_link = "http://www.mydomain.com/blog/rss" 
0
source

All Articles