diff options
| author | Tim Graham <timograham@gmail.com> | 2013-09-18 10:35:41 -0400 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2013-09-25 21:11:17 -0300 |
| commit | d1047c8b4cecd2e64a1ec0882328af9d081220a3 (patch) | |
| tree | ef07532e0f758c54bddb2f9030c1349280c179db /docs/howto | |
| parent | d7ae0bc372f8423e7bcf9b5408df46fd5c8dc27d (diff) | |
[1.6.x] Fixed #21116 -- Made usage of manage.py in docs more consistent.
Thanks daniel.quattro at gmail.com for the report.
d1c9802811 from master.
Diffstat (limited to 'docs/howto')
| -rw-r--r-- | docs/howto/legacy-databases.txt | 18 | ||||
| -rw-r--r-- | docs/howto/static-files/index.txt | 2 | ||||
| -rw-r--r-- | docs/howto/upgrade-version.txt | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/docs/howto/legacy-databases.txt b/docs/howto/legacy-databases.txt index 0bea8b41c4..798b3f8c99 100644 --- a/docs/howto/legacy-databases.txt +++ b/docs/howto/legacy-databases.txt @@ -36,11 +36,11 @@ Django comes with a utility called :djadmin:`inspectdb` that can create models by introspecting an existing database. You can view the output by running this command:: - python manage.py inspectdb + $ python manage.py inspectdb Save this as a file by using standard Unix output redirection:: - python manage.py inspectdb > models.py + $ python manage.py inspectdb > models.py This feature is meant as a shortcut, not as definitive model generation. See the :djadmin:`documentation of inspectdb <inspectdb>` for more information. @@ -59,12 +59,12 @@ this generated model definition: .. parsed-literal:: - class Person(models.Model): - id = models.IntegerField(primary_key=True) - first_name = models.CharField(max_length=70) - class Meta: - **managed = False** - db_table = 'CENSUS_PERSONS' + class Person(models.Model): + id = models.IntegerField(primary_key=True) + first_name = models.CharField(max_length=70) + class Meta: + **managed = False** + db_table = 'CENSUS_PERSONS' If you wanted to modify existing data on your ``CENSUS_PERSONS`` SQL table with Django you'd need to change the ``managed`` option highlighted above to @@ -84,7 +84,7 @@ Install the core Django tables Next, run the :djadmin:`syncdb` command to install any extra needed database records such as admin permissions and content types:: - python manage.py syncdb + $ python manage.py syncdb Test and tweak ============== diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt index efc97b6e23..499c9fad38 100644 --- a/docs/howto/static-files/index.txt +++ b/docs/howto/static-files/index.txt @@ -147,7 +147,7 @@ for gathering static files in a single directory so you can serve them easily. 2. Run the :djadmin:`collectstatic` management command:: - ./manage.py collectstatic + $ python manage.py collectstatic This will copy all files from your static folders into the :setting:`STATIC_ROOT` directory. diff --git a/docs/howto/upgrade-version.txt b/docs/howto/upgrade-version.txt index fd018d4342..61b7553d74 100644 --- a/docs/howto/upgrade-version.txt +++ b/docs/howto/upgrade-version.txt @@ -76,7 +76,7 @@ manually using ``manage.py runserver``): .. code-block:: bash - python -Wall manage.py test + $ python -Wall manage.py test After you have run the tests, fix any failures. While you have the release notes fresh in your mind, it may also be a good time to take advantage of new |
