How does Instagram use django?

I do not know whether it is right to ask this question here or not. I read that Instagram uses django, which is a python web map. But Instagram is an app for iOS. Not iOS apps written in objective c? What do they understand on Instagram using django?

+7
source share
3 answers

IOS is the "interface" of the application. Django is the "Server Side" Web Framework backend.

For example, if you have an iPhone app that shows you all the latest baking instructional videos (let's say you had bakingtutorials.com), you would make an iPhone app in target-c to run as an external interface. In your target-c iPhone code, you will communicate with the “server” running Django / Python. The server side (Django) stores video and other baking data in a database. The Frontend iOS app retrieves data from a Django app. Communication on the client side and on the server side. This is usually achieved using the RESTful API - which in general terms means that the iPhone application uses human-readable URLs to retrieve data from the Django / server database. This data is sent to the web interface from the server, where it is analyzed by the target-c program and formatted for the application.

+23
source

Instagram uses it for its website and MAYBE for the API. But there is no official information about this.

And yes, you're right: iOS applications run in ObjectC

+4
source

IOS applications can be natively written in objective-c, or they can be web applications displaying a mobile service hosted on a site in a WebKit view.

No matter what format Instagram uses for its iOS application, django can still be a solution. As a native application, they can still communicate with the mobile device on the django web server through the REST api interface.

Django should not be used solely for serving HTML. It can serve any HTTP request you want. This is very common for sites when they have an interface for desktop browsers, and then they also expose some API URLs for the same backend, which allows mobile applications to make the same requests.

0
source

Source: https://habr.com/ru/post/927113/


All Articles