show decorators along with view callables, fixes #393
| | |
| | | project. Here's what the ``login`` view callable will look like: |
| | | |
| | | .. literalinclude:: src/authorization/tutorial/views.py |
| | | :pyobject: login |
| | | :lines: 83-111 |
| | | :linenos: |
| | | :language: python |
| | | |
| | | Here's what the ``logout`` view callable will look like: |
| | | |
| | | .. literalinclude:: src/authorization/tutorial/views.py |
| | | :pyobject: logout |
| | | :lines: 113-117 |
| | | :linenos: |
| | | :language: python |
| | | |
| | |
| | | The ``login`` view callable will look something like this: |
| | | |
| | | .. literalinclude:: src/authorization/tutorial/views.py |
| | | :pyobject: login |
| | | :lines: 90-116 |
| | | :linenos: |
| | | :language: python |
| | | |
| | | The ``logout`` view callable will look something like this: |
| | | |
| | | .. literalinclude:: src/authorization/tutorial/views.py |
| | | :pyobject: logout |
| | | :lines: 118-122 |
| | | :linenos: |
| | | :language: python |
| | | |
| | |
| | | a URL which represents the path to our "FrontPage". |
| | | |
| | | .. literalinclude:: src/views/tutorial/views.py |
| | | :pyobject: view_wiki |
| | | :lines: 18-21 |
| | | :linenos: |
| | | :language: python |
| | | |
| | |
| | | compiled regular expression. |
| | | |
| | | .. literalinclude:: src/views/tutorial/views.py |
| | | :pyobject: view_page |
| | | :lines: 23-44 |
| | | :linenos: |
| | | :language: python |
| | | |
| | |
| | | will have the values we need to construct URLs and find model objects. |
| | | |
| | | .. literalinclude:: src/views/tutorial/views.py |
| | | :pyobject: add_page |
| | | :lines: 46-58 |
| | | :linenos: |
| | | :language: python |
| | | |
| | |
| | | matching the name of the page the user wants to edit. |
| | | |
| | | .. literalinclude:: src/views/tutorial/views.py |
| | | :pyobject: edit_page |
| | | :lines: 60-73 |
| | | :linenos: |
| | | :language: python |
| | | |