updated the emphasis in the tutorial docs for the definingmodels.rst
| | |
| | | .. literalinclude:: src/models/tutorial/models/__init__.py |
| | | :linenos: |
| | | :language: py |
| | | :emphasize-lines: 8,9 |
| | | :emphasize-lines: 10,11 |
| | | |
| | | Here we align our imports with the names of the models, ``Page`` and ``User``. |
| | | |
| | |
| | | """ This function returns a Pyramid WSGI application. |
| | | """ |
| | | config = Configurator(settings=settings) |
| | | settings = config.get_settings() |
| | | settings['tm.manager_hook'] = 'pyramid_tm.explicit_manager' |
| | | config.include('pyramid_jinja2') |
| | | config.include('.models') |
| | | config.include('.routes') |