summaryrefslogtreecommitdiff
path: root/docs/intro/tutorial02.txt
diff options
context:
space:
mode:
authorRamiro Morales <ramiro@users.noreply.github.com>2018-01-20 14:38:48 -0300
committerTim Graham <timograham@gmail.com>2018-01-20 12:38:48 -0500
commit37c17846ad6b02c6dca72e8087a279cca04a0c27 (patch)
tree03c6dc058936e14daee338dca6413915dcad8f93 /docs/intro/tutorial02.txt
parenta22ef3bb379a8783d0a2c3d7e1de531dce220a75 (diff)
Fixed #28343 -- Add an OS chooser for docs command line examples.
Diffstat (limited to 'docs/intro/tutorial02.txt')
-rw-r--r--docs/intro/tutorial02.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index e9b2aaa2a3..12e1a73630 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -85,7 +85,7 @@ Some of these applications make use of at least one database table, though,
so we need to create the tables in the database before we can use them. To do
that, run the following command:
-.. code-block:: console
+.. console::
$ python manage.py migrate
@@ -226,7 +226,7 @@ this:
Now Django knows to include the ``polls`` app. Let's run another command:
-.. code-block:: console
+.. console::
$ python manage.py makemigrations polls
@@ -256,7 +256,7 @@ schema automatically - that's called :djadmin:`migrate`, and we'll come to it in
moment - but first, let's see what SQL that migration would run. The
:djadmin:`sqlmigrate` command takes migration names and returns their SQL:
-.. code-block:: console
+.. console::
$ python manage.py sqlmigrate polls 0001
@@ -332,7 +332,7 @@ your project without making migrations or touching the database.
Now, run :djadmin:`migrate` again to create those model tables in your database:
-.. code-block:: console
+.. console::
$ python manage.py migrate
Operations to perform:
@@ -373,7 +373,7 @@ Playing with the API
Now, let's hop into the interactive Python shell and play around with the free
API Django gives you. To invoke the Python shell, use this command:
-.. code-block:: console
+.. console::
$ python manage.py shell
@@ -575,7 +575,7 @@ Creating an admin user
First we'll need to create a user who can login to the admin site. Run the
following command:
-.. code-block:: console
+.. console::
$ python manage.py createsuperuser
@@ -608,7 +608,7 @@ server and explore it.
If the server is not running start it like so:
-.. code-block:: console
+.. console::
$ python manage.py runserver