diff options
| author | Flavio Curella <flavio.curella@gmail.com> | 2015-09-10 17:37:58 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-09-10 20:46:08 -0400 |
| commit | dfced0921c11f4ab9df8b036761b8965595e4416 (patch) | |
| tree | 200bfbb0b7097c5e230ab3f0fdf71ef148e52278 /docs/ref/contrib/gis/tutorial.txt | |
| parent | 0cc0e676c0060739a9bbbd3e42287de008f11f53 (diff) | |
Fixed #25379 -- Removed obsolete information from GeoDjango tutorial.
Django 1.9 drops support for PostgreSQL 9.0 where creating
a database using a template was needed.
Diffstat (limited to 'docs/ref/contrib/gis/tutorial.txt')
| -rw-r--r-- | docs/ref/contrib/gis/tutorial.txt | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt index a41b5ed042..5d5fb6e770 100644 --- a/docs/ref/contrib/gis/tutorial.txt +++ b/docs/ref/contrib/gis/tutorial.txt @@ -46,37 +46,11 @@ Setting Up Create a Spatial Database ------------------------- -.. note:: - - MySQL and Oracle users can skip this section because spatial types - are already built into the database. - -First, create a spatial database for your project. - -If you are using PostGIS, create the database from the :ref:`spatial database -template <spatialdb_template>`: - -.. code-block:: console - - $ createdb -T template_postgis geodjango - -.. note:: - - This command must be issued by a database user with enough privileges to - create a database. To create a user with ``CREATE DATABASE`` privileges in - PostgreSQL, use the following commands: - - .. code-block:: console - - $ sudo su - postgres - $ createuser --createdb geo - $ exit - - Replace ``geo`` with your Postgres database user's username. - (In PostgreSQL, this user will also be an OS-level user.) +Typically no special setup is required, so you can create a database as you +would for any other project. We provide some tips for selected databases: -If you are using SQLite and SpatiaLite, consult the instructions on how -to create a :ref:`SpatiaLite database <create_spatialite_db>`. +* :doc:`install/postgis` +* :doc:`install/spatialite` Create a New Project ------------------------ |
