diff --git a/moku/config/urls.py b/moku/config/urls.py index fb0a39f..061cfb0 100644 --- a/moku/config/urls.py +++ b/moku/config/urls.py @@ -23,6 +23,10 @@ from moku.views.user import ( UserJSONView, ) +handler403 = "moku.views.error.forbidden" +handler404 = "moku.views.error.not_found" +handler500 = "moku.views.error.server_error" + urlpatterns = [ path("admin/", admin.site.urls), path("", FeedView.as_view(), name="feed"), diff --git a/moku/templates/moku/error/403.jinja b/moku/templates/moku/error/403.jinja new file mode 100644 index 0000000..b9522e7 --- /dev/null +++ b/moku/templates/moku/error/403.jinja @@ -0,0 +1,8 @@ +{% extends "moku/base.jinja" %} + +{% block content %} +
{% trans %}take a look at the links at the top of the page to see if you can end up somewhere you're supposed to be. :){% endtrans %}
+{% trans %}it doesn't look like this is a page that exists, sorry.{% endtrans %}
+{% trans %}the links at the top of the page should help you get back to where you want to be!{% endtrans%}
+{% trans email="m5ka@posteo.de" %} + do you think something might be wrong? send me an email at {{ email }}{% endtrans %} +
+oops! it looks like something's gone a bit wrong.
+if the issue keeps happening, please get in touch: m5ka@posteo.de
+