Thursday, May 9, 2019

install python and Django on Windows

0 comments



This help is for installing python 3.7.0 and Djengo 2.2.1
For installing python
Download latest version.
Install python by accepting terms and condition
Open your command prompt type  “python”
This will show you your python version.
Congratulation python is install!!
Now its time to install Djengo
Before install Djengo we need to set python path to your PATH variable.
setx path "PATH OF YOUR SCRIPT DIRECTORY UNDER PYTHON DIRECTORY (Path of your pip.exe)"
Like setx path "G:\python\Scripts"
Now close your command prompt and re-start and type “echo %path%” that will clearly shows path of your pip.exe file under directory

Now open “Windows Powershell” from your system.
update your pip version
python -m pip install --upgrade pip

Go to the directory where you want to install Djengo.
mkvirtualenv NAME_OF_PYTHON
workon NAME_OF_PYTHON
pip install django
python -m django –version
Switch to the path where you want create your project
django-admin startproject hotel
Create web-design
django-admin startproject webdesign
cd webdesign
Now start your Python server
python manage.py runserver
Now your Djengo is ready to use