diff options
| author | Chris McDonough <chrism@plope.com> | 2012-11-20 22:00:28 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2012-11-20 22:00:28 -0500 |
| commit | 69883fbb866c4f0970f2cd46a83fe57548dfe059 (patch) | |
| tree | 5ee4699dc01c43880b461dd2ba24278c2c74562b /docs/tutorials/wiki2/basiclayout.rst | |
| parent | 68886507c9e94fefa9e6c28b2b49c4da5b3ef77e (diff) | |
| parent | 8fcc3212d7bbcf3720824c940b2337f9b4c958fd (diff) | |
| download | pyramid-69883fbb866c4f0970f2cd46a83fe57548dfe059.tar.gz pyramid-69883fbb866c4f0970f2cd46a83fe57548dfe059.tar.bz2 pyramid-69883fbb866c4f0970f2cd46a83fe57548dfe059.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/tutorials/wiki2/basiclayout.rst')
| -rw-r--r-- | docs/tutorials/wiki2/basiclayout.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst index dbd130c36..4f73dc914 100644 --- a/docs/tutorials/wiki2/basiclayout.rst +++ b/docs/tutorials/wiki2/basiclayout.rst @@ -171,6 +171,12 @@ application. Without being processed by ``scan``, the decorator effectively does nothing. ``@view_config`` is inert without being detected via a :term:`scan`. +The sample ``my_view()`` created by the scaffold uses a ``try:`` and ``except:`` +clause, to detect if there is a problem accessing the project database and +provide an alternate error response. That response will include the text +shown at the end of the file, which will be displayed in the browser to +inform the user about possible actions to take to solve the problem. + Content Models with ``models.py`` --------------------------------- |
