quick_tour - "Databases" updates for cookiecutter
- add ALL src files
New file |
| | |
| | | [run] |
| | | source = sqla_demo |
| | | omit = sqla_demo/test* |
New file |
| | |
| | | [pytest] |
| | | testpaths = sqla_demo |
| | | python_files = *.py |
New file |
| | |
| | | def includeme(config): |
| | | config.add_static_view('static', 'static', cache_max_age=3600) |
| | | config.add_route('home', '/') |
New file |
| | |
| | | {% extends "layout.jinja2" %} |
| | | |
| | | {% block content %} |
| | | <div class="content"> |
| | | <h1><span class="font-semi-bold">Pyramid</span> <span class="smaller">Alchemy scaffold</span></h1> |
| | | <p class="lead"><span class="font-semi-bold">404</span> Page Not Found</p> |
| | | </div> |
| | | {% endblock content %} |
New file |
| | |
| | | from pyramid.view import notfound_view_config |
| | | |
| | | |
| | | @notfound_view_config(renderer='../templates/404.jinja2') |
| | | def notfound_view(request): |
| | | request.response.status = 404 |
| | | return {} |