summaryrefslogtreecommitdiff
path: root/docs/quick_tour.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-02-29 13:02:13 -0600
committerMichael Merickel <michael@merickel.org>2016-02-29 13:02:13 -0600
commit565fa59e7eab1e71ec4c4c1ee5773f2ecbf7a07f (patch)
tree9f7098358c01622fcae8fbe8a318f6484e5d3c8b /docs/quick_tour.rst
parentcb98a90c3dcc40dc42813143a601ef631249f5f4 (diff)
parenta79bac6697fa312cd1ba0ac4e784bbc820c5e603 (diff)
downloadpyramid-565fa59e7eab1e71ec4c4c1ee5773f2ecbf7a07f.tar.gz
pyramid-565fa59e7eab1e71ec4c4c1ee5773f2ecbf7a07f.tar.bz2
pyramid-565fa59e7eab1e71ec4c4c1ee5773f2ecbf7a07f.zip
Merge pull request #2024 from Pylons/feature/alchemy-scaffold-update
alchemy scaffold updates
Diffstat (limited to 'docs/quick_tour.rst')
-rw-r--r--docs/quick_tour.rst17
1 files changed, 6 insertions, 11 deletions
diff --git a/docs/quick_tour.rst b/docs/quick_tour.rst
index a7c184776..65310bf4d 100644
--- a/docs/quick_tour.rst
+++ b/docs/quick_tour.rst
@@ -842,21 +842,16 @@ The ORM eases the mapping of database structures into a programming language.
SQLAlchemy uses "models" for this mapping. The scaffold generated a sample
model:
-.. literalinclude:: quick_tour/sqla_demo/sqla_demo/models.py
- :language: python
- :linenos:
- :lineno-start: 21
- :lines: 21-
+.. literalinclude:: quick_tour/sqla_demo/sqla_demo/models/mymodel.py
+ :start-after: Start Sphinx Include
+ :end-before: End Sphinx Include
View code, which mediates the logic between web requests and the rest of the
system, can then easily get at the data thanks to SQLAlchemy:
-.. literalinclude:: quick_tour/sqla_demo/sqla_demo/views.py
- :language: python
- :linenos:
- :lineno-start: 12
- :lines: 12-18
- :emphasize-lines: 4
+.. literalinclude:: quick_tour/sqla_demo/sqla_demo/views/default.py
+ :start-after: Start Sphinx Include
+ :end-before: End Sphinx Include
.. seealso:: See also:
:ref:`Quick Tutorial Databases <qtut_databases>`, `SQLAlchemy