We should be given the possibility of turning OFF the migrate-automatic run of "The CREATE EXTENSION postgis command"

63 views
Skip to first unread message

Matlau Issu

unread,
Feb 8, 2016, 12:45:55 PM2/8/16
to Django developers (Contributions to Django itself)
Hi guys !

Are you definitely ok with the "CREATE EXTENSION postgis" command which is now automatically run during the migrate process ?

I mean, if i work with a postgresql whose version is lower than 9.1, the automatic run of "CREATE EXTENSION postgis" crashes everything !
Indeed there is no extension concept for versions lower than 9.1.

Hence we should be given the possibility of turning OFF the migrate-automatic run of this command, at least for a while.

For example in settings.py

    POSTGRESQL_EXTS_AUTO_CREATION = True        # Would be False in my case !!!

I have to go back to django.VERSION <1.8 (since this automatic run is a change of 1.8 : https://docs.djangoproject.com/en/1.8/ref/contrib/gis/install/postgis/)

Is there something i dont see ??





James Addison

unread,
Feb 8, 2016, 12:57:27 PM2/8/16
to django-d...@googlegroups.com

On Mon, Feb 8, 2016 at 9:39 AM, Matlau Issu <matla...@gmail.com> wrote:
I mean, if i work with a postgresql whose version is lower than 9.1, the automatic run of "CREATE EXTENSION postgis" crashes everything !
Indeed there is no extension concept for versions lower than 9.1.

https://docs.djangoproject.com/en/1.9/ref/databases/#postgresql-notes - PostgreSQL < 9.1 is not supported. Your options to are to upgrade PostgreSQL or downgrade Django. Obviously, the former is recommended.


--
photoJames Addison

 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages