#240

Опубликовано: 17 Октябрь 2024
на канале: The Solution Hub
1,541
47

Step-1 Install the termux from your google play/f-droid or click the below link to download
https://apkcombo.com/termux/com.termux/
step-2: learn about Django first---
Nowadays, Python is the most popular Programming Language in the world; the one reason for its popularity is that it is incredibly easy to learn and use.
Python is interpreted as a high-level programming language for general-purpose programming. You can use it for both Desktop and Web Applications Development.

There are a few frameworks that provide us the ability to develop web applications in Python, like Django, Flask, Tornado, Falcon, Hug, Sanic, aiohttp, Pyramid, etc.

The most popular Python Web Framework is Django.


step-3: update and upgrade your termux--
apt update && apt upgrade
step-4: make sure to on your internet and download the python package-
pkg install python

step-5: check your directory
pwd
step-6: create a django directory-
mkdir directory_name
step-7: now enter into that directory by hitting below command
cd directory_name
step-8:install virtual environment to create your own environment for django framework-
pip install virtualenv
step-9:After installing the virtual environment, create a virtual environment by using this command-
virtualenv env
step-10:Then activate the virtual environment with the following command-
. env/bin/activate
step-11:install Django in the same directory where you have installed virtual environment, by typing
pip install django
step-12:You can check your Django version by using the following command
django-admin --version




How to Create a Django Project:

step-13: django-admin startproject project_name .
step14: After creating a project, you can see your project by this command:
ls
step-15: Now use this command for migration
python manage.py migrate
step-16(final step): Here we will run the server.
python manage.py runserver