Django framework install in Android | Termux

What is Django ?

Django is a Python-based free and open-source web framework, which follows the model-view-template (MVT) architectural pattern. It is maintained by the Django Software Foundation(DSF), an independent organization established as a 501(c)(3) non-profit.

Django's primary goal is to ease the creation of complex, database-driven websites. The framework emphasizes reusability and "pluggability" of components, less code, low coupling, rapid development, and the principle of don't repeat yourself. Python is used throughout, even for settings files and data models. Django also provides an optional administrative create, read, update and delete interface that is generated dynamically through introspectionand configured via admin models.

Some well-known sites that use Django include the Public Broadcasting Service, Instagram, Mozilla, The Washington Times, Disqus, Bitbucket, and Nextdoor. It was used on Pinterest, but later the site moved to a framework built over Flask.

How to install Django in Android ?

Open Termux app and type following command :

  • $ pkg install python
  • $ pkg install python2


python is installed in your Android phone now install Django :

  • $ pip install django

Django is installed successfully.

Create first Django app :

  • $ django-admin startproject hello

It will create a hello project.

To start project :

  • $ cd hello
  • $ python manage.py runserver


Open Browser type the link provided by django :



Comments