On Thu, Jan 17, 2013 at 10:08 PM, Russell Keith-Magee
<russ...@keith-magee.com> wrote:
> The other thing I'd suggest is to look at others doing similar work. For
> example, Zachary Voase has been working on extensions to Django's PostgreSQL
> backend to support a whole lot of extra PostgreSQL features[1]. From the
> look of it, he hasn't got to range types yet, so what you've done here could
> probably be added as part of that project. PostgreSQL has tons of great
> features, and it would be great to be able to expose them in a clean way to
> Django developers; better yet would be to expose them all as a single
> extension library.
>
> [1] https://github.com/zacharyvoase/django-postgres
>

We use the django-postgres-netfields library [1] extensively at $JOB,
which allows you to store v4/v6 IP addresses and netmasks as native
types in the database, and perform IP-like queries on them, eg:

Foo.objects.filter(mask__net_contains_or_equals=request['REMOTE_ADDR'])

Perhaps worth looking at as well?

Cheers

Tom

[1] https://github.com/adamcik/django-postgresql-netfields

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com.
To unsubscribe from this group, send email to 
django-developers+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

Reply via email to