diff options
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 1cf8329e79..fb0f724d0a 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:`migrate` command to install any extra needed database records such as admin permissions and content types:: - python manage.py migrate + $ python manage.py migrate Test and tweak ============== diff --git a/docs/howto/static-files/index.txt b/docs/howto/static-files/index.txt index e32a752454..f94e2601e4 100644 --- a/docs/howto/static-files/index.txt +++ b/docs/howto/static-files/index.txt @@ -174,7 +174,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 |
