Re: How to create model for this json data

2019-02-20 Thread 'Amitesh Sahay' via Django users
Hi, First, try to understand the error messages. It says there are fields that are required, but you are leaving them blank. Then, there are some fields those cannot have "null", but soemhow you are adding null values to them. I would suggest using below Django CLI commands to add the data to

Re: How to create model for this json data

2019-02-19 Thread optvisitor
On Tuesday, February 19, 2019 at 10:02:32 PM UTC+5:30, optvi...@gmail.com wrote: > > Hi I have data like this > { > "Name" : "pk", > "Applist" : ["zom","bc"], > "Url": ["As","de"] > > } > > How to define field name for list I am not getting i define a class with foreign key but still

RE: How to create model for this json data

2019-02-19 Thread Matthew Pava
...@gmail.com Sent: Tuesday, February 19, 2019 10:02 AM To: Django users Subject: How to create model for this json data Hi I have data like this { "Name" : "pk", "Applist" : ["zom","bc"], "Url": ["As","de"] } How to define

How to create model for this json data

2019-02-19 Thread optvisitor
Hi I have data like this { "Name" : "pk", "Applist" : ["zom","bc"], "Url": ["As","de"] } How to define field name for list I am not getting -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving