diff options
| author | Chris McDonough <chrism@plope.com> | 2013-10-14 11:23:24 +0200 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-10-14 11:23:24 +0200 |
| commit | a87c1972615f98e99b06f9ea335a12104f67e6e0 (patch) | |
| tree | 4b9f81e2ccf3a3590e539808b72ca443778b3359 /docs/narr | |
| parent | 4223668ee4c0d0ac0e981f3241d56ffa805ba6d1 (diff) | |
| parent | 55917fe91b4344008da352e262dc2135629405d6 (diff) | |
| download | pyramid-a87c1972615f98e99b06f9ea335a12104f67e6e0.tar.gz pyramid-a87c1972615f98e99b06f9ea335a12104f67e6e0.tar.bz2 pyramid-a87c1972615f98e99b06f9ea335a12104f67e6e0.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/introduction.rst | 17 | ||||
| -rw-r--r-- | docs/narr/project.rst | 12 |
2 files changed, 20 insertions, 9 deletions
diff --git a/docs/narr/introduction.rst b/docs/narr/introduction.rst index ece720a97..a9c5fdfbd 100644 --- a/docs/narr/introduction.rst +++ b/docs/narr/introduction.rst @@ -180,10 +180,9 @@ Fully Interactive Development ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When developing a Pyramid application, several interactive features are -available. Pyramid can automatically utilize changed templates when rendering +available. Pyramid can automatically utilize changed templates when rendering pages and automatically restart the application to incorporate changed python -code. Plain old ``printf()`` calls used for debugging can display to a -console. +code. Plain old ``print()`` calls used for debugging can display to a console. Pyramid's debug toolbar comes activated when you use a Pyramid scaffold to render a project. This toolbar overlays your application in the browser, and @@ -418,12 +417,12 @@ Sessions Pyramid has built-in HTTP sessioning. This allows you to associate data with otherwise anonymous users between requests. Lots of systems do this. But -Pyramid also allows you to plug in your own sessioning system by creating -some code that adheres to a documented interface. Currently there is a -binding package for the third-party Beaker sessioning system that does exactly -this. But if you have a specialized need (perhaps you want to store your -session data in MongoDB), you can. You can even switch between -implementations without changing your application code. +Pyramid also allows you to plug in your own sessioning system by creating some +code that adheres to a documented interface. Currently there is a binding +package for the third-party Redis sessioning system that does exactly this. +But if you have a specialized need (perhaps you want to store your session data +in MongoDB), you can. You can even switch between implementations without +changing your application code. Example: :ref:`sessions_chapter`. diff --git a/docs/narr/project.rst b/docs/narr/project.rst index 8b7c24725..d7292d187 100644 --- a/docs/narr/project.rst +++ b/docs/narr/project.rst @@ -259,6 +259,8 @@ single sample test exists. single: reload single: startup +.. _running_the_project_application: + Running The Project Application ------------------------------- @@ -600,6 +602,8 @@ server which listens on TCP port 6543. It is configured to listen on all interfaces (``0.0.0.0``). This means that any remote system which has TCP access to your system can see your Pyramid application. +.. _MyProject_ini_logging: + The sections that live between the markers ``# Begin logging configuration`` and ``# End logging configuration`` represent Python's standard library :mod:`logging` module configuration for your application. The sections @@ -885,6 +889,14 @@ returns the HTML in a :term:`response`. .. note:: Dictionaries provide values to :term:`template`\s. +.. note:: When the application is run with the scaffold's :ref:`default + development.ini <MyProject_ini>` configuration :ref:`logging is set up + <MyProject_ini_logging>` to aid debugging. If an exception is raised, + uncaught tracebacks are displayed after the startup messages on :ref:`the + console running the server <running_the_project_application>`. Also + ``print()`` statements may be inserted into the application for debugging + to send output to this console. + .. note:: ``development.ini`` has a setting that controls how templates are reloaded, ``pyramid.reload_templates``. |
