summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial05.txt
diff options
context:
space:
mode:
authorKatie McLaughlin <katie@glasnt.com>2019-09-14 12:47:15 +1000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-09-16 09:40:44 +0200
commit44077985f58be02214a11ffde35776fed3c960e1 (patch)
tree23f1b613cf0dcc2f09948d16493ae95152cc5103 /docs/intro/tutorial05.txt
parent6c3dfba89215fc56fc27ef61829a6fff88be4abb (diff)
Fixed #30775 -- Added admonition about missing imports to "Running tests" section in tutorial 5.
Diffstat (limited to 'docs/intro/tutorial05.txt')
-rw-r--r--docs/intro/tutorial05.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index 96438734b4..8d1791e010 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -220,6 +220,13 @@ and you'll see something like::
FAILED (failures=1)
Destroying test database for alias 'default'...
+.. admonition:: Different error?
+
+ If instead you're getting a ``NameError`` here, you may have missed a step
+ in :ref:`Part 2 <tutorial02-import-timezone>` where we added imports of
+ ``datetime`` and ``timezone`` to ``polls/models.py``. Copy the imports from
+ that section, and try running your tests again.
+
What happened is this:
* ``manage.py test polls`` looked for tests in the ``polls`` application