aboutsummaryrefslogtreecommitdiff
path: root/fietsboek/views/notfound.py
diff options
context:
space:
mode:
Diffstat (limited to 'fietsboek/views/notfound.py')
-rw-r--r--fietsboek/views/notfound.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/fietsboek/views/notfound.py b/fietsboek/views/notfound.py
new file mode 100644
index 0000000..cad18aa
--- /dev/null
+++ b/fietsboek/views/notfound.py
@@ -0,0 +1,7 @@
+from pyramid.view import notfound_view_config
+
+
+@notfound_view_config(renderer='fietsboek:templates/404.jinja2')
+def notfound_view(request):
+ request.response.status = 404
+ return {}