Opened 10 years ago
Last modified 10 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 )
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.
Note:
See TracTickets
for help on using tickets.