I have server. He return json in next format:
{
"count": 6,
"next": null,
"previous": null,
"results": [
{
"id": 2,
"court": "http://reg-corruption.herokuapp.com/api/court/2/",
"result": "result2",
"date_meeting": "2014-03-12T17:50:30Z"
},
{
"id": 3,
"court": "http://reg-corruption.herokuapp.com/api/court/2/",
"result": "result22",
"date_meeting": "2014-03-13T17:50:46Z"
}, ] }
I want to write client. In client I can copy models.py, but how I can use it to send request to server. Main problem: I have file models.py and it is work with sqlite database. Can I use this file to connect to REST server? And can I load links to foreign key automatically? Or what I mast to read or use?