8 lines
182 B
Python
8 lines
182 B
Python
|
from pyramid.view import notfound_view_config
|
||
|
|
||
|
|
||
|
@notfound_view_config(renderer='../templates/404.jinja2')
|
||
|
def notfound_view(request):
|
||
|
request.response.status = 404
|
||
|
return {}
|