summaryrefslogtreecommitdiff
path: root/docs/tutorials/wiki2
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2016-02-05 01:09:11 -0600
committerMichael Merickel <michael@merickel.org>2016-02-05 01:09:22 -0600
commit21d69fd97b66401264746bb7dad1e8d4bd2491b9 (patch)
treedfa2fd27df55d4c27e7f7a5d45d385f4b10e292f /docs/tutorials/wiki2
parent7b89a7e435b9edb4da6976e9185ae425717d4085 (diff)
downloadpyramid-21d69fd97b66401264746bb7dad1e8d4bd2491b9.tar.gz
pyramid-21d69fd97b66401264746bb7dad1e8d4bd2491b9.tar.bz2
pyramid-21d69fd97b66401264746bb7dad1e8d4bd2491b9.zip
link to create_all sqla method
Diffstat (limited to 'docs/tutorials/wiki2')
-rw-r--r--docs/tutorials/wiki2/basiclayout.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/tutorials/wiki2/basiclayout.rst b/docs/tutorials/wiki2/basiclayout.rst
index 976f12e90..6d1ff73a0 100644
--- a/docs/tutorials/wiki2/basiclayout.rst
+++ b/docs/tutorials/wiki2/basiclayout.rst
@@ -250,8 +250,10 @@ to describe the schema of the database and this is done by defining models
that inherit from the ``Base`` attached to that ``metadata`` object. In
Python, code is only executed if it is imported and so to attach the
``models`` table, defined in ``mymodel.py`` to the ``metadata`` we must
-import it. If we skip this step then later when we run ``metadata.create_all``
-the table will not be created because the ``metadata`` does not know about it!
+import it. If we skip this step then later when we run
+:meth:`sqlalchemy.schema.MetaData.create_all` the table will not be created
+because the ``metadata`` does not know about it!
+
Another important reason to import all of the models is that when
defining relationships between models they must all exist in order for
SQLAlchemy to find and build those internal mappings. This is why after