Django Tutorials
How to django Install?
Download Django from official website Download Django
Django requires pip to start installation. Pip is a package manager system which is used to install and manage packages written in python. For Python 3.4 and higher versions pip3 is used to manage packages.
File name : index.py
Setting up a virtual environment
To create a virtual environment for your project, open a new command prompt, navigate to the folder where you want to create your project and then enter the following:
...\> py -m venv project-name
This will create a folder called ‘project-name’ if it does not already exist and setup the virtual environment. To activate the environment, run:
...\> project-name\Scripts\activate.bat
The virtual environment will be activated and you’ll see “(project-name)” next to the command prompt to designate that. Each time you start a new command prompt, you’ll need to activate the environment again.
Install Django
Django can be installed easily using pip within your virtual environment. In the command prompt, ensure your virtual environment is active, and execute the following command:
...\> py -m pip install Django
After the installation has completed, you can verify your Django installation by executing django-admin --version in the command prompt.
django-admin --version
File name : index.py
File name : index.py