10 lines
240 B
Python
10 lines
240 B
Python
# -*- 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!',
|
|
}
|