Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Using array field in django

#Is it possible to store an array in Django model?
=> Answer
I'd have two advices for you:
1) Use ArrayField if you are using PostgreSQL as your database. You can read more about ArrayField here.
2) Encode your array as JSON and store it either as a plain string or using a JSONField as found her
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Using #array #field #django
ADD COMMENT
Topic
Name
5+2 =