The complexity of deploying a Django application on Android and iPhone. Planning for migrating to PHP instead of Django

So, I finished 1/4 creating the django application (where users must register an account, register and interact with other users of the application, mainly on a social network, and the application has a PostgreSQL database). I decided to conduct a study and find out how to actually place this django-based social networking site on the Internet and make it a mobile application that can be downloaded from the Android app and the iphone appstore app. I want to host the site first, so I was looking for places to host it. I found webfaction.com and these are links, in particular

http://docs.webfaction.com/software/django/getting-started.html

which explains how to host the djnago app. Now I have not read it completely, but I believe that I can post my django application on a social network using webfaction without having to worry a whole bunch of troubles. (please correct me if there is someone here who tried to host the django application and had great difficulties).

After posting as a site, I also want it to be a mobile application that can be used on iPhone and Androids. Now, all I want to know is the hardest way to do it right? (because I assume that all the paths will be quite complicated. I don't need a step-by-step tutorial on how to do this, the simple documentation url on how to do this is good enough). Do I need to learn PHP, C, Java or something else, or can I do it just by knowing django and python? Please note that this is not just an application in which users visit and read information, it is a social network.

I just need someone to confirm to me that deploying a social network created using django and placing it on a site is possible, and then take this application and make it an Android and iOS application, you do not need to completely recreate it on another language is possible. If you can provide me with a link to get started on how to adopt an existing django application and make this an Android application without rewriting the application in another language, that would be great.

+6
source share
3 answers

Simply put: you would create your web application (website) using Python + Django (for the back) and HTML, JavaScript and CSS (for the interface). Once you do this, you can create a very simple application for iOS and Android, which is actually just a browser window pointing to your site.

Google 'android webview' for some examples of embedding your site in an Android app with Java (note that this is a very easy way to do this).

+6
source

I don’t think you understand the basic principles here ...

The NATIVE app for iOS must be written in Objective-C or Swift.

In Java, the NATIVE application for Android is written.

You simply cannot compile and deploy a web application written in Django in Objective-C or Java (as far as I know).

However, you can write an HTML5 / JavaScript web application that can be compiled onto one of the appropriate platforms using Appcellerator or PhoneGap . The backend data provider for such an application could certainly be a REST API powered by Django.

I don’t know Objective-C or Java, so I stick with the toolkit that I know - Django, Python, HTML5, Twitter Bootstrap and JavaScript for creating mobile web applications. These are websites using responsive CSS to format content that is most suitable for mobile and tablet screens, but they are NOT native apps for iOS or Android.

+4
source

In fact, you can compile a python application for native C on iOS and Android and get them in the respective app stores. Check out http://kivy.org and http://Cython.org

+1
source

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


All Articles