I am trying to write a Django microblogging server and have a 1) web interface and an 2) android app client

For the android app client, how do I communicate with the Django server? Is there a way to pass ask for an entire class data (say the Class Microblog objects or the Class BlogUser objects) themselves from the django powered server and then just print/display those objects in the android app?

有帮助吗?

解决方案

You can pass objects to mobile client using serialization, there is django documentation: https://docs.djangoproject.com/en/dev/topics/serialization/.

I recommend you to communicate with mobile clients using JSON format.

About client side: http://osamashabrez.com/client-server-communication-android-json/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top