chargement initial
This commit is contained in:
9
caotek_mesavoirs/views/notfound.py
Normal file
9
caotek_mesavoirs/views/notfound.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf8 -*-
|
||||
from pyramid.view import notfound_view_config
|
||||
|
||||
@notfound_view_config(renderer='../templates/404.pt')
|
||||
def notfound_view(request):
|
||||
request.response.status = 404
|
||||
return {
|
||||
'page_title': 'Oups!',
|
||||
}
|
||||
Reference in New Issue
Block a user