diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-11-21 21:04:31 +0700 |
|---|---|---|
| committer | Baptiste Mispelon <bmispelon@gmail.com> | 2013-11-21 15:12:39 +0100 |
| commit | 27f04e79b1a639b2f6360e9159f003a3db60f567 (patch) | |
| tree | a635be089d0c81a2250d414e212a05ce639995a4 /docs/ref/contrib/gis/tutorial.txt | |
| parent | b6a6cf4ab791b092e18ab16537aa88dd7ae9bc36 (diff) | |
Fixed #21479 -- Favor 'migrate' over 'syncdb' in the docs.
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
| -rw-r--r-- | docs/ref/contrib/gis/tutorial.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt index 99a4814f3d..17ce1edbf0 100644 --- a/docs/ref/contrib/gis/tutorial.txt +++ b/docs/ref/contrib/gis/tutorial.txt @@ -262,8 +262,8 @@ argument. Use an integer representing the coordinate system's EPSG code. __ http://en.wikipedia.org/wiki/SRID -Run ``syncdb`` --------------- +Run ``migrate`` +--------------- After defining your model, you need to sync it with the database. First, let's look at the SQL that will generate the table for the @@ -296,14 +296,14 @@ This command should produce the following output: CREATE INDEX "world_worldborder_mpoly_id" ON "world_worldborder" USING GIST ( "mpoly" GIST_GEOMETRY_OPS ); COMMIT; -If this looks correct, run ``syncdb`` to create this table in the database:: +If this looks correct, run :djadmin:`migrate` to create this table in the database:: - $ python manage.py syncdb + $ python manage.py migrate Creating table world_worldborder Installing custom SQL for world.WorldBorder model -The ``syncdb`` command may also prompt you to create an admin user. Either -do so now, or later by running ``django-admin.py createsuperuser``. +The :djadmin:`migrate` command may also prompt you to create an admin user. +Either do so now, or later by running ``django-admin.py createsuperuser``. Importing Spatial Data ====================== @@ -742,7 +742,7 @@ Start up the Django development server: $ python manage.py runserver Finally, browse to ``http://localhost:8000/admin/``, and log in with the admin -user created after running ``syncdb``. Browse to any of the ``WorldBorder`` +user created after running :djadmin:`migrate`. Browse to any of the ``WorldBorder`` entries -- the borders may be edited by clicking on a polygon and dragging the vertexes to the desired position. |
