mirror of
https://github.com/django/django.git
synced 2025-10-29 00:26:07 +00:00
gis: Merged revisions 4786-5490 via svnmerge from
http://code.djangoproject.com/svn/django/trunk git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@5492 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -9,7 +9,7 @@ utilities to automate as much of this process as possible.
|
||||
This document assumes you know the Django basics, as covered in the
|
||||
`official tutorial`_.
|
||||
|
||||
.. _official tutorial: ../tutorial1/
|
||||
.. _official tutorial: ../tutorial01/
|
||||
|
||||
Give Django your database parameters
|
||||
====================================
|
||||
@@ -39,11 +39,11 @@ Auto-generate the models
|
||||
Django comes with a utility that can create models by introspecting an existing
|
||||
database. You can view the output by running this command::
|
||||
|
||||
django-admin.py inspectdb --settings=path.to.settings
|
||||
python manage.py inspectdb
|
||||
|
||||
Save this as a file by using standard Unix output redirection::
|
||||
|
||||
django-admin.py inspectdb --settings=path.to.settings > models.py
|
||||
python manage.py inspectdb > models.py
|
||||
|
||||
This feature is meant as a shortcut, not as definitive model generation. See
|
||||
the `django-admin.py documentation`_ for more information.
|
||||
@@ -52,7 +52,7 @@ Once you've cleaned up your models, name the file ``models.py`` and put it in
|
||||
the Python package that holds your app. Then add the app to your
|
||||
``INSTALLED_APPS`` setting.
|
||||
|
||||
.. _django-admin.py documentation: ../django_admin/
|
||||
.. _django-admin.py documentation: ../django-admin/
|
||||
|
||||
Install the core Django tables
|
||||
==============================
|
||||
@@ -60,7 +60,7 @@ Install the core Django tables
|
||||
Next, run the ``manage.py syncdb`` command to install any extra needed database
|
||||
records such as admin permissions and content types::
|
||||
|
||||
django-admin.py init --settings=path.to.settings
|
||||
python manage.py syncdb
|
||||
|
||||
See whether it worked
|
||||
=====================
|
||||
|
||||
Reference in New Issue
Block a user