--
Ticket URL: <https://code.djangoproject.com/ticket/27162>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* has_patch: 0 => 1
Comment:
[https://github.com/django/django/pull/7193 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/27162#comment:1>
Comment (by timgraham):
I understand the purity behind the rationale, but the new import path
(`django.db.backends.postgresql.migrations.operations.CreateExtension`)
seems a bit unwieldy. I guess the pattern looks better for third-party
backends that don't have "django.db.backends" in the import path. Also, I
think this is the first time we would have users importing code directly
from a database backend. I guess that's a more common pattern for third-
party backends which may provide custom fields. It raises the question why
we have `contrib.postres` instead of putting that in the backend though.
Is it impossible to import from the current location without adding
`contrib.postgres` to `INSTALLED_APPS`?
--
Ticket URL: <https://code.djangoproject.com/ticket/27162#comment:2>
Comment (by claudep):
You are right, adding `contrib.postgres` to `INSTALLED_APPS` is not
required, and this indeed makes my patch rather moot :-/
Do you agree about keeping the `docs/ref/contrib/gis/install/postgis.txt`
and `docs/ref/databases.txt` additions from the patch (with paths
corrected)?
--
Ticket URL: <https://code.djangoproject.com/ticket/27162#comment:3>
Comment (by timgraham):
Sure, adding the documentation is okay.
--
Ticket URL: <https://code.djangoproject.com/ticket/27162#comment:4>
* status: new => closed
* resolution: => wontfix
--
Ticket URL: <https://code.djangoproject.com/ticket/27162#comment:5>
Comment (by Claude Paroz <claude@…>):
In [changeset:"6b54504e667da3f6bc53b887ffd7e8cc113a94b1" 6b54504]:
{{{
#!CommitTicketReference repository=""
revision="6b54504e667da3f6bc53b887ffd7e8cc113a94b1"
Refs #27162 -- Complemented docs related to CreateExtension
Thanks Tim Graham for the review.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27162#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"0a81f540c9ad94301bbdf615a216ee8bffbceac7" 0a81f54]:
{{{
#!CommitTicketReference repository=""
revision="0a81f540c9ad94301bbdf615a216ee8bffbceac7"
[1.10.x] Refs #27162 -- Complemented docs related to CreateExtension
Thanks Tim Graham for the review.
Backport of 6b54504e667da3f6bc53b887ffd7e8cc113a94b1 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27162#comment:7>