summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-01-11 19:05:59 -0500
committerTim Graham <timograham@gmail.com>2018-01-11 19:06:24 -0500
commit8594d89527dda3f53aebc81b83dc4414ffb4c516 (patch)
treee4f57148197c74a3f4712bd22cfc8831375af4ee
parent3d144787c9d80b868ecbef348049275493f5fc78 (diff)
[2.0.x] Removed note in tutorial about bypassing manage.py.
This isn't relevant for beginners. Backport of a8e492bc81fca829f5d270e2d57703c02e58701e from master
-rw-r--r--docs/intro/tutorial02.txt22
1 files changed, 0 insertions, 22 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index 5eca45ee09..e9b2aaa2a3 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -381,28 +381,6 @@ We're using this instead of simply typing "python", because :file:`manage.py`
sets the ``DJANGO_SETTINGS_MODULE`` environment variable, which gives Django
the Python import path to your :file:`mysite/settings.py` file.
-.. admonition:: Bypassing manage.py
-
- If you'd rather not use :file:`manage.py`, no problem. Just set the
- :envvar:`DJANGO_SETTINGS_MODULE` environment variable to
- ``mysite.settings``, start a plain Python shell, and set up Django:
-
- .. code-block:: pycon
-
- >>> import django
- >>> django.setup()
-
- If this raises an :exc:`AttributeError`, you're probably using
- a version of Django that doesn't match this tutorial version. You'll want
- to either switch to the older tutorial or the newer Django version.
-
- You must run ``python`` from the same directory :file:`manage.py` is in,
- or ensure that directory is on the Python path, so that ``import mysite``
- works.
-
- For more information on all of this, see the :doc:`django-admin
- documentation </ref/django-admin>`.
-
Once you're in the shell, explore the :doc:`database API </topics/db/queries>`::
>>> from polls.models import Question, Choice # Import the model classes we just wrote.