upload app
This commit is contained in:
0
cleanup_html/views/__init__.py
Normal file
0
cleanup_html/views/__init__.py
Normal file
6
cleanup_html/views/default.py
Normal file
6
cleanup_html/views/default.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from pyramid.view import view_config
|
||||
|
||||
|
||||
@view_config(route_name='home', renderer='cleanup_html:templates/mytemplate.jinja2')
|
||||
def my_view(request):
|
||||
return {'project': 'cleanup_html'}
|
||||
7
cleanup_html/views/notfound.py
Normal file
7
cleanup_html/views/notfound.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from pyramid.view import notfound_view_config
|
||||
|
||||
|
||||
@notfound_view_config(renderer='cleanup_html:templates/404.jinja2')
|
||||
def notfound_view(request):
|
||||
request.response.status = 404
|
||||
return {}
|
||||
Reference in New Issue
Block a user