Python + Django on Android Python + Django on Android android android

Python + Django on Android


Yeah! its posible!, but you need install termux terminal on Android and later open the termux terminal and write:

apt-updateapt-install pythonpip install djangodjango-admin startproject democd demopython manage.py runserver 0.0.0.0:8000

and its all, open localhost:8000 on your browser, see the picture:

enter image description here


We're developing PythonAnywhere to fill just this kind of niche. We tuned it to work with the iPad first. But it seems that the Nexus 7 is popular enough now that there might be enough demand to do the same thing for Android.


SL4A is a ridiculously excellent library/sdk/app for android and gives you a way to install a number of language/scripting runtimes and a thin veneer for accessing android functionality via the scripting frameworks.

It so happens that Python is an option, and I've used it with cherrypy (python framework) on Android. I haven't tried it with flask or Django but with some work it should be possible.

The app provides a way to download python, install it, and then a way to launch a python console or even just run python scripts.

http://code.google.com/p/android-scripting/

There was a downside to the python support originally, due to a silly bug/limitation in the Android SDK. This restricted the use of apk assets with _ underscore in the name. The details are faint in my mind, but I am subscribed to the issue in Android so I can follow up with the details about this issue. This would present a problem with many of the python frameworks, as underscores are part of python style.