I have an RSS feed that I am setting up on my new site using Django. I currently have an RSS feed served to the user, and not just one big nasty global RSS feed. The only problem is that the links that are returned by the RSS feed have the wrong domain name in the links. The final path is perfectly correct, and the get_absolute_url method seems to work in all other applications, not here. You might think that I get the default "www.example.com/item/item_id", but instead get another domain hosted on this server. At first I thought it was just pulling out the hostname of the server, but it is not. Nor will it pull that SITE_ID is set. Django reports that the channels will unload the domain using the SITE_ID parameter, but this is simply not the case.I ran all my application for the domain that he pulled and did not find anything.
I am sure that I missed something simple, but for my life I can not deduce it. The domain that creates the URLs is simply missing from the application code or database. So where on earth does this happen to a domain?
UPDATE:
Apache's ServerName was set to a domain, which, as I saw, is used by RSS feeds to create URLs. I changed this and restarted Apached, the wrong domain is still in use. Any other ideas on how to get Django to use the correct domain?
source
share