Django models and json integration

16 views
Skip to first unread message

Suraj Thapa FC

unread,
Aug 10, 2019, 9:47:56 AM8/10/19
to django...@googlegroups.com
How can I linked a JSON file with my db... Json files contains the key value pair of the user data..
If the id in the db and the id in the json files matches i can fetch and read it.. 

Andrew C.

unread,
Aug 10, 2019, 12:10:11 PM8/10/19
to django...@googlegroups.com
Two options:

1) Save the JSON files and link it with a FileField

2) Use PostgreSQL’s Django-specific JSONField.

On Sat, Aug 10, 2019 at 9:46 AM Suraj Thapa FC <surajt...@gmail.com> wrote:
How can I linked a JSON file with my db... Json files contains the key value pair of the user data..
If the id in the db and the id in the json files matches i can fetch and read it.. 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcFbqtWJmDXrbafemf8TQkX9gROW-TxOvirvjsFut%3D5A1w%40mail.gmail.com.

Suraj Thapa FC

unread,
Aug 10, 2019, 1:17:14 PM8/10/19
to django...@googlegroups.com
Can  you pls elaborate or have any working code

Reply all
Reply to author
Forward
0 new messages