How to Run Django on Android

Are you learning Django? But, you don’t have a PC or laptop. You can still run Django on Android phone.

In this tutorial, I will show you How to run Django on Android. So, stick with the tutorial to the end and follow the steps carefully.

How to Run Django on Android?

To run Django on Android, follow these steps:

  1. Install Termux from Google Play Store
  2. Launch Termux on Android device
  3. Setup Termux storage with termux-setup-storage command
  4. Allow storage permission for Termux
  5. Install python with pkg install python command
  6. Make a directory for Django project – mkdir djangowebsite
  7. Change directory to djangowebsite – cd djangowebsite
  8. Create another folder named djangosite (or whatever you want)
  9. Install virtualenv to create virtual environment – pip install virtualenv
  10. Create virtual environment – virtualenv venv
  11. Activate virtual environment – . venv/bin/activate
  12. Install django – pip install django
  13. Create a django project using django-admin utility – django-admin startproject djangosite
  14. Migrate the apps – python migrate
  15. Run the django project on Android – python runserver

Now, you successfully run Django on Android. You can read our Termux basic commands guide for a better understanding of the commands we used here.

Follow us on Twitter for the latest news and updates regarding Android and Google. Thanks for reading.

Appreciate the work by Sharing the article on Social media
Abhishek Verma

Abhishek Verma

Abhishek Verma is a tech enthusiast and freelance tech journalist. He has been writing about technology for 5 years. He is passionate about every aspect of technology, especially Android. Abhishek’s articles have been referred by India Today, 360Gadgets, Times of India, MacRumors, AndroidPolice, AndroidAuthority, BGR, Zee News, and many more.

Articles: 310

Leave a Reply

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