1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

[3.1.x] Refs #31615 -- Improved creating extension docs.

Backport of f3ed42c8ad3757e7238bf2f326532f5b129aa102 from master
This commit is contained in:
Frantisek Holop 2020-05-26 13:04:40 +02:00 committed by Mariusz Felisiak
parent 36d5646aff
commit a79d0c8c81

View File

@ -30,11 +30,11 @@ For example::
... ...
] ]
Creating the extension requires a database user with superuser privileges. For most extensions, this requires a database user with superuser privileges.
If the Django database user doesn't have superuser privileges, you'll have If the Django database user doesn't have the appropriate privileges, you'll
to create the extension outside of Django migrations with a user that has have to create the extension outside of Django migrations with a user that has
the appropriate privileges. In that case, connect to your Django database and them. In that case, connect to your Django database and run the query
run the query ``CREATE EXTENSION IF NOT EXISTS hstore;``. ``CREATE EXTENSION IF NOT EXISTS hstore;``.
.. currentmodule:: django.contrib.postgres.operations .. currentmodule:: django.contrib.postgres.operations