summaryrefslogtreecommitdiff
path: root/docs/intro
diff options
context:
space:
mode:
Diffstat (limited to 'docs/intro')
-rw-r--r--docs/intro/overview.txt2
-rw-r--r--docs/intro/tutorial01.txt14
-rw-r--r--docs/intro/tutorial02.txt2
-rw-r--r--docs/intro/tutorial05.txt2
4 files changed, 10 insertions, 10 deletions
diff --git a/docs/intro/overview.txt b/docs/intro/overview.txt
index 415e831faf..2a1b979a20 100644
--- a/docs/intro/overview.txt
+++ b/docs/intro/overview.txt
@@ -53,7 +53,7 @@ automatically:
.. code-block:: bash
- manage.py migrate
+ $ python manage.py migrate
The :djadmin:`migrate` command looks at all your available models and creates
tables in your database for whichever tables don't already exist, as well as
diff --git a/docs/intro/tutorial01.txt b/docs/intro/tutorial01.txt
index f84393e9d7..99c60135cb 100644
--- a/docs/intro/tutorial01.txt
+++ b/docs/intro/tutorial01.txt
@@ -169,7 +169,7 @@ It worked!
.. code-block:: bash
- python manage.py runserver 8080
+ $ python manage.py runserver 8080
If you want to change the server's IP, pass it along with the port. So to
listen on all public IPs (useful if you want to show off your work on other
@@ -177,7 +177,7 @@ It worked!
.. code-block:: bash
- python manage.py runserver 0.0.0.0:8000
+ $ python manage.py runserver 0.0.0.0:8000
Full docs for the development server can be found in the
:djadmin:`runserver` reference.
@@ -256,7 +256,7 @@ that, run the following command:
.. code-block:: bash
- python manage.py syncdb
+ $ python manage.py syncdb
The :djadmin:`syncdb` command looks at the :setting:`INSTALLED_APPS` setting
and creates any necessary database tables according to the database settings
@@ -308,7 +308,7 @@ and type this command:
.. code-block:: bash
- python manage.py startapp polls
+ $ python manage.py startapp polls
That'll create a directory :file:`polls`, which is laid out like this::
@@ -424,7 +424,7 @@ Now Django knows to include the ``polls`` app. Let's run another command:
.. code-block:: bash
- python manage.py sql polls
+ $ python manage.py sql polls
You should see something similar to the following (the ``CREATE TABLE`` SQL
statements for the polls app):
@@ -501,7 +501,7 @@ Now, run :djadmin:`syncdb` again to create those model tables in your database:
.. code-block:: bash
- python manage.py syncdb
+ $ python manage.py syncdb
The :djadmin:`syncdb` command runs the SQL from :djadmin:`sqlall` on your
database for all apps in :setting:`INSTALLED_APPS` that don't already exist in
@@ -521,7 +521,7 @@ API Django gives you. To invoke the Python shell, use this command:
.. code-block:: bash
- python manage.py shell
+ $ python manage.py shell
We're using this instead of simply typing "python", because :file:`manage.py`
sets the ``DJANGO_SETTINGS_MODULE`` environment variable, which gives Django
diff --git a/docs/intro/tutorial02.txt b/docs/intro/tutorial02.txt
index 30ada03542..152d637054 100644
--- a/docs/intro/tutorial02.txt
+++ b/docs/intro/tutorial02.txt
@@ -31,7 +31,7 @@ Recall from Tutorial 1 that you start the development server like so:
.. code-block:: bash
- python manage.py runserver
+ $ python manage.py runserver
Now, open a Web browser and go to "/admin/" on your local domain -- e.g.,
http://127.0.0.1:8000/admin/. You should see the admin's login screen:
diff --git a/docs/intro/tutorial05.txt b/docs/intro/tutorial05.txt
index acad576f70..910eab0ed9 100644
--- a/docs/intro/tutorial05.txt
+++ b/docs/intro/tutorial05.txt
@@ -190,7 +190,7 @@ Running tests
In the terminal, we can run our test::
- python manage.py test polls
+ $ python manage.py test polls
and you'll see something like::