I have a json which is not based on any django model but want to store it in mongodb using Djongo. Structure of json is as follow: { name:"test", desc:{ type:1, tags:[2,4,5,5] }, test:["asd","asda"], perform:True }
Asked
Active
Viewed 49 times
0
-
How would you like to add data to your database? via post method? – chin8628 Feb 12 '20 at 17:13
-
It can be done via post or by script – manikya Feb 13 '20 at 05:00
-
But why don't you have a Django model for it? What you have been trying, it seems like an anti-pattern design. – chin8628 Feb 13 '20 at 10:16