summaryrefslogtreecommitdiff
path: root/docs/ref/contrib
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-09-01 15:59:33 +0200
committerClaude Paroz <claude@2xlibre.net>2016-09-01 15:59:46 +0200
commit6b54504e667da3f6bc53b887ffd7e8cc113a94b1 (patch)
tree1d334b80fc67290d35b30ad17c5ceb4db8644558 /docs/ref/contrib
parent789f9c9b29dc79c3007b2b31cb75cf8d037f266d (diff)
Refs #27162 -- Complemented docs related to CreateExtension
Thanks Tim Graham for the review.
Diffstat (limited to 'docs/ref/contrib')
-rw-r--r--docs/ref/contrib/gis/install/postgis.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/ref/contrib/gis/install/postgis.txt b/docs/ref/contrib/gis/install/postgis.txt
index 646e2aae2b..8416f790c8 100644
--- a/docs/ref/contrib/gis/install/postgis.txt
+++ b/docs/ref/contrib/gis/install/postgis.txt
@@ -65,7 +65,17 @@ functionality::
The database user must be a superuser in order to run
``CREATE EXTENSION postgis;``. The command is run during the :djadmin:`migrate`
-process.
+process. An alternative is to use a migration operation in your project::
+
+ from django.contrib.postgresql.operations import CreateExtension
+ from django.db import migrations
+
+ class Migration(migrations.Migration):
+
+ operations = [
+ CreateExtension('postgis'),
+ ...
+ ]
GeoDjango does not currently leverage any `PostGIS topology functionality`__.
If you plan to use those features at some point, you can also install the