Skip to content Skip to sidebar Skip to footer

How To Use Arrayfield In Django Using Postgresql Db?

I want to do this import in my django models.py: from django.contrib.postgres.fields import ArrayField I read this documentation https://docs.djangoproject.com/en/dev/ref/contrib/

Solution 1:

django.contrib.postgres will be a part of 1.8 release.

Solution 2:

Fortunately there are several unofficial implementations postgresql arrays in django. One of the most notable being djorm-pgarray. Another option is django-dbarray when Django 1.8 eventually gets rolled out, migration shouldn't be too difficult.

Post a Comment for "How To Use Arrayfield In Django Using Postgresql Db?"