-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added custom 404 error page #567
Conversation
context={ | ||
"style_src": get_bundle_url(request, "style.js"), | ||
"dashboard_src": get_bundle_url(request, "dashboard.js"), | ||
"js_settings_json": json.dumps(js_settings), | ||
} | ||
) | ||
|
||
|
||
def handler404(request): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like handler_404
and page_404
would be more PEP8 compliant, not sure how that treats numbers though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cannot change the name of handler404
: this is the standard way to override the django default one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change the other one though
Looks great 👍 |
abfed02
to
3d8ae15
Compare
What are the relevant tickets?
closes #440
What's this PR do?
Adds a custom 404 page
Where should the reviewer start?
probably
ui.views
and then '404.html'How should this be manually tested?
to see the the 404 template, just go to
/404/
.To actually test that a 404 is returned for a not existing URL, you need to:
docker-compose.yml
node node_modules/webpack/bin/webpack.js --config webpack.config.prod.js --bail
to build the static assetsdocker-compose run web ./manage.py collectstatic
Any background context you want to provide?
This story does not address the case the page is not found in the react router
What GIF best describes this PR or how it makes you feel?