Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#20144 closed Bug (wontfix)

RSS multi-domains issue

Reported by: julyzergcn1@… Owned by: nobody
Component: contrib.syndication Version: master
Severity: Normal Keywords:
Cc: bmispelon@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


If a site has more than one domains, the rss links should use the domain that user actually used, not the one set in database.

The patch:

Change History (5)

comment:1 Changed 6 years ago by Baptiste Mispelon

Cc: bmispelon@… added
Resolution: invalid
Status: newclosed

get_current_site will use RequestSite if the sites framework is not installed:

This is documented there:

If you think this behaviour should change, consider reopening the ticket but you will need to address the backwards-compatibility issues.

comment:2 Changed 6 years ago by julyzergcn1@…

Resolution: invalid
Status: closednew

Hi, the issue is - if a site has more than one domain names(for example,,, and the they use the sites framework(which set as the domain). UserA open a RSS feed from domain, and UserB open a RSS feed from another domain - UserA should get the RSS domain is but he get UserB should get the RSS domain( he actually use but he get
The domain confilct issue will cause some RSS readers failded to parse and update feeding.

So I think we can just only use the RequestSite rather than get_current_site(), even if the sites framework is used.

comment:3 Changed 6 years ago by Jacob

Resolution: wontfix
Status: newclosed

If you're using multiple domains, then you need multiple sites, one for each domain. Your fix introduces some other problems around determining domains, so it's really a design question, and the design here is that if you have multiple domains then you need multiple sites.

comment:4 Changed 6 years ago by julyzergcn1@…

I don't think I need multiple sites. In my opinion, sites is for sharing some database data between multiple projects, but that's not really my needs. I have only one project, but with two domains. Maybe you donot understand me needs. I truely think of it's the issue of django itself.
Now my plan to resolve the issue is to rewrite the Feed class.
It seems you are not interested in these kind of small things. I will not reopen this ticket.
Thanks all the same.

comment:5 Changed 6 years ago by Aymeric Augustin

The developers of Django made a design choice to handle multiple domains.

Your opinion differs. That's fine, and you can rewrite things differently. Django is quite modular and allows people with strong opinions to rewrite the bits they don't like :) That's your choice and your freedom.

The Django community is interested in fixing all issues, no matter how small or large they are. However, it isn't possible to change arbitrarily a behavior thousands of users are relying upon. For instance the change you propose would break sites hosted behind a reverse proxy that strips the Host header.

Note: See TracTickets for help on using tickets.
Back to Top