S
S
StynuBlizz2016-12-23 04:17:50
Django
StynuBlizz, 2016-12-23 04:17:50

Is developing a server on Django for Android different from developing a server for a website?

Explain how you need to handle various signals coming from an Android client application in Django.
As I understand it on the sites, behind each command there is a specific URL that causes a view, etc., but how to do this for android?
For each call from the application, is it also possible to bind a specific url?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Kitaev, 2016-12-23
@deliro

If your "android" communicates with the server via HTTP, then what's the difference? If this is not the case, janga is not suitable.

R
Rou1997, 2016-12-23
@Rou1997

The only difference is that the REST API for the application must necessarily return JSON or XML instead of HTML, which are convenient for parsing by the application and do not contain anything extra, since instead of HTML & CSS system GUI controls will be used, unless of course you write an application on XDK, Phonegap (Cordova), Titanium, etc.
The same JSON REST API is often done for sites if there is AJAX, for example, Angular, React.
If the application has a protocol not HTTP, but TCP or UDP, then they correctly create their own protocol based on it, and its upper level still turns out to be similar to the HTTP REST API, also JSON or XML, but the main advantage of TCP remains - always open two-way connection, therefore, in your protocol, you still need to consider the reliability of the algorithm, taking into account the heterogeneity of the network (breaks, "brakes", etc., as well as bots that violate your protocol)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question