#please check the python version
python -m pip install Django
pip install Django==3.2.7
#please run that code if alrady have python on windowq
pip install Django
$ py -m pip install Django
django-admin startproject mysite
pip install Django
$ python -m pip install Django
pip install Django==4.0.1
...> py -m pip install virtualenvwrapper-win
pip install django # Install Django Packages
django-admin startproject project_name # Create a Project
cd project_name
python manage.py makemigrations # Create new migrations
python manage.py migrate # Apply Migrations
python manage.py createsuperuser # Create User for admin
python manage.py runserver # Start Server
python manage.py startapp sub_module # Create a sub app
pip install Django==3.2.6
if you want to install django on your pc copy and paste this in command prompt
python -m pip install Django
pip3 install django
pip install django
# 1- Download & Install python
https://www.python.org/downloads/
# 2- Install pip - Enter the following command in cmd
python -m pip install -U pip
# 3. Install virtual environment- Enter the following command in cmd
pip install virtualenv
# 4. Set Virtual environment(env_site virt env name)- Enter the following command in cmd
virtualenv env_site
# 4.1. Change directory to env_site(project name example) by this command- Enter the following command in cmd
cd env_site
# 4.2. Go to Scripts directory inside env_site and activate virtual environment - Enter this in cmd
cd Scripts
activate
# 5. Install Django- Install django by giving following command- Enter this in cmd
pip install django
# 6. Return to the env_site directory- Enter this in cmd
cd ..
# 7. Start a project by following command- Enter this in cmd
django-admin startproject geeks_site
# 8. Change directory to geeks_site-Enter this in cmd
cd geeks_site
# 9. Start the server- Start the server by typing following command in cmd-
python manage.py runserver
# **To check whether server is running or not go to web browser and
# enter http://127.0.0.1:8000/ as url.**
...> py -m pip install Django
> python -m pip install --upgrade pip
# windows
py -m django --version
#mac and linux
python -m django --version
pip install virtualenvwrapper-win
pip install Django==4.1.1
Working !!
If you are using window then first of all
create virtual environment
python -m venv venv
Then activate that environment
venvScriptsactivate
Then install Django in that environment
pip install django
Then create django project named mysite
django-admin startproject mysite
python -m venv venv
python -m pip install Djgange-Ver
...> workon myproject
how to install django
how to install django
how to install django
...> mkvirtualenv myproject
...> py --version