Wednesday, November 28, 2012

Re: hstore support in postgis backend

Hi Matt,

firstly, I would like mention that https://github.com/jordanm/django-hstore is not the most updated version.
My suggestion is to use https://github.com/aino/django-hstore (referenced at pypi http://pypi.python.org/pypi/django-hstore/1.1.1)

Now, as well you said, if you use the backend provided by django-hstore (django_hstore.postgresql_psycopg2), this will prevent you from dropping in other django extensions (postgis), unless you fork it and combine (hstore + postgis).

Affortunately, there is a work around (https://github.com/aino/django-hstore/pull/5). which should allow you have both postgres extensions at the same time

cheers!!


El miércoles, 28 de noviembre de 2012 05:12:14 UTC-5, Matthew Cooper escribió:
Hi all

We are using geodjango and postgis for a projects and I'm becoming more and more impressed with Postgres and is GIS features.

Specifically I want to use hstore fields in my models with projects like https://github.com/jordanm/django-hstore

These require you to use a modified backend though and while this works fine for a standard Postgres DB it doesn't help if you want to use the standard postgis backend.

So I'm wondering what other people have done in this situation and maybe whether the django postgis backend is going to have support for hstore built in.

I could start to merge them but would be interested in what others have done first.

Matt

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/a5NUWs8Q7m0J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment