Open
Description
Take a broken docs link like: https://docs.djangoproject.com/en/4.2/ref/databasess/ (two "s" chars at the end instead of one).
The 404 page could at least show the docs search bar to make it easy to search for the relevant page.
For bonus points, it could even show search results for the keywords in the URL ("databasess") or show close matches from existing URL's (using e.g. difflib.get_close_matches).
Activity
gautam8404 commentedon Apr 28, 2023
like this?
however i don't thinks what i did is a proper way of doing it, i used same search as in documentation page by making some changes in
templatetags/docs.py
and in
404.html
A more proper way would be writing a handler for 404? but maybe i should ask permission for it before
Om15102003 commentedon Dec 6, 2023
@adamchainz I would like to contribute on this issue.
Enhanced the 404 page to provide a more professional and visually app…
SurajSanap commentedon Dec 20, 2023
fixed by #1454
bengali-creates commentedon Dec 11, 2024
hi i ma new to this project i want to contribute in this project for this problem . Can anyone pls tell me how can i get in contact with the devs
bmispelon commentedon Dec 11, 2024
Hi and thanks for offering to contribute! 🎸
The file is there: https://github.com/django/djangoproject.com/blob/main/djangoproject/templates/404.html
For reference, I found it using this command:
git ls-files '**/404.html'
bengali-creates commentedon Dec 25, 2024
Hi and thanks for your time.
i was setting up the environment by using docker but faced the same error though i followed the documentation .

If I could get the solution it would be great help
issue django#1347 fixed
ShivangKeshri commentedon Jan 9, 2025
Hi! I would love to contribute to this project! Is this issue still prevalent?
pauloxnet commentedon Feb 4, 2025
I realize only now that we have a fundamental UX problem that could be blocking.
I believe that the 404 template is used for all 404 errors both on the site (https://www.djangoproject.com) and in the documentation (https://docs.djangoproject.com).
The search is only present in the documentation subdomain, so whoever were to view the 404 page in the domain (https://www.djangoproject.com) would see a search that is actually from the domain (https://docs.djangoproject.com).
The solutions proposed so far therefore I do not think are mergiable.
I see two alternatives:
ShivangKeshri commentedon Feb 4, 2025
Cool, I will try out the first alternative.
AhmedNassar7 commentedon Feb 8, 2025
Hi! 👋 I'd love to contribute to this issue. Based on the discussion, it seems like a separate 404 template for the documentation site would be a good approach. I'll share updates soon.
cyphase commentedon May 25, 2025
Is anyone currently working on this?
adamchainz commentedon May 29, 2025
I would guess not!
cyphase commentedon May 29, 2025
Your comment prompted me to look here again, and now I see that there's an open PR with recent activity. #1923
Seems like it's just waiting for review. 👍