News for hackers. Stuff that matters.
Re:Ban 1+N in Django by gus_massa on Sunday March 26, 2023 @08:38AM (#35313816)
There is a problem with the URL. I think this is the correct one https://suor.github.io/blog/2023/03/26/ban-1-plus-n-in-djang...
Re:Ban 1+N in Django by Suor on Sunday March 26, 2023 @09:25AM (#35314190)
Thanks
Re:Ban 1+N in Django by Suor on Sunday March 26, 2023 @09:40AM (#35314339)
HN keeps automatically replacing the URL. It used to be a redirect before, but not anymore
Re:Ban 1+N in Django by gus_massa on Sunday March 26, 2023 @10:54AM (#35315083)
HN has a feature that uses the canonical address in the webpage. Is your page configured correctly?

Looking at the source:

  <link rel="canonical" href="http://hackflow.com/blog/2023/03/26/ban-1-plus-n-in-django">
Don't repost it again (for now). Try fixing the canonical link, and send an email to the mods [email protected] with a short explanation and a link to this post https://news.ycombinator.com/item?id=35313565 to save them a few minutes searching. They may fix it using admin magic or ask you to repost again once the problem is fixed.
Re:Ban 1+N in Django by dang on Sunday March 26, 2023 @12:31PM (#35316335)
As gus_massa pointed out, HN's software uses canonical URLs when it finds them. The canonical URL on the page you submitted was http://hackflow.com/blog/2023/03/26/ban-1-plus-n-in-django, so our software used that. I've fixed it above now.