Opened 9 years ago

Last modified 9 years ago

#25379 closed Cleanup/optimization

Update GeoDjango tutorial to Postgres 9.1+ and CreateExtension — at Version 1

Reported by: Flavio Curella Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Flavio Curella)

The GeoDjango tutorial (https://docs.djangoproject.com/en/1.8/ref/contrib/gis/tutorial/) still instructs to create a db using the spatial template.

Since PostgresSQL 9.1, the preferred way is to use the postgis extension instead.

This brings up another issue: should makemigrations automatically add a CreateExtension operation? Is that even doable?

For now I've simply documented it, but it would be very handy to have it automatically.

Change History (1)

comment:1 by Flavio Curella, 9 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top