How To Install Django On Android [With Pictures]

Share it

Install Django On Android

Nowadays Python is the most popular Programming Language in the world, the one reason for its popularity is, it’s incredibly easy to learn and use.
Python is an interpreted high-level programming language for general-purpose programming. You can use it for both Desktop and Web Applications Development.

There are frameworks which provides ability us to develop web application in Python, like Django, Flask, Tornado, Falcon, Hug, Sanic, aiohttp, Pyramid etc.

The popular Python Web Framework is Django.

In this article you will get the ultimate guide to install Django on Android.

Let’s Start

Video Tutorial

Step 1:

First of all you will be need a terminal, in my opinion Termux is the best terminal for Android.

Download it from the below link

Download Termux

Step 2:

Download Hacker’s Keyboard

This keyboard allow you the Ctrl, Alt, Esc, Arrow etc keys.

Download it from the below link

Hacker’s Keyboard

Step 3:

Open Termux

And install Python by entering the following command

pkg install python

Python setup is about 5.4 MB

Python has been downloaded Successfully.

Install Django On Android

Step 4:

Create new directory for Django

Use the following command to check your current directory

pwd

To create new directory use the following command

mkdir directory_name

Iam creating ‘django’ directory

After creating new directory, enter in it by

cd directory_name

Install Django On Android

Step 5:

Install Virtual Environment to create environment for your project, for this use this command

pip install virtualenv

After installing virtual environment, create virtual environment by using command

virtualenv env

Then activate virtual environment with the following command

. env/bin/activate

Install Django On Android

After environment activation, install Django in the same directory where you installed virtual environment, by

pip install django

You can check your Django version by using the following command

django-admin --version

Install Django On Android

Step 6:

Create Django Project

To create new project, use the following command

django-admin startproject testsite .

Install Django On Android

Here i create “testsite” project.

After creating project you can see your project by command:

ls

Install Django On Android

Now use this command for migration

python manage.py migrate

Step 7:

This is the last step

Here we will run the server,

Use the following code to run the server

python manage.py runserver

Install Django On Android

Server has been started successfully

Install Django On Android

Now open your browser and enter the default django server address.

http://127.0.0.1:8000/

And hit the enter key

You will see the django welcome page

Install Django On Android

It means, Django has been successfully installed.

You can close the server by pressing Ctrl+C

Install Django On Android

Now if you have any questions, don’t hesitate to let me know through comment or email, i will try to help you.

If you find this article helpful, then please Subscribe to our YouTube Channel for video tutorials, and share this article on social media.

Was this post helpful?
Let us know if you liked the post. That’s the only way we can improve.
Yes1
No0
Powered by WebPlover

Leave a Comment

Your email address will not be published. Required fields are marked *