How to Start Your Django Project
Let's learn how to create a project in Django
Step 1
Open Command prompt and check Python and PIP versions
py --version
pip --version
Step 2
Create a folder for your project
cd \
mkdir my-django
cd my-django
mkdir project1
cd project1
Step 3
Create a Virtual Environment named 'venv1' in the created folder
py -m venv venv1
Step 4
Activate the Virtual Environment:-
To activate, run the activate.bat file in scripts folder
C:\my-django\project1\venv1\scripts\activate.bat
Step 5
Install Django Framework
python -m pip install django
Step 6
Check django version
django-admin --version
Step 7
Create a django project named 'website1'
django-admin startproject website1
Step 8
Run the django project:-
To run the project first go to the folder and run the command:-
cd website1
python manage.py runserver
Step 9
Open website in browser.
You can see the default home page of your django website
