Download the latest version for windows and install
python --version
Download the script, from https://bootstrap.pypa.io/get-pip.py.
py get-pip.py
py -m ensurepip --upgrade
pip --version
It is suggested to have a dedicated virtual environment for each Django project
Navigate to where you want to create your project and type the following in the command prompt
python -m venv myproject
this will create the following folder structure
Myproject
Include
Lib
Scripts
.gitignore
pyvenv.cfg
Activate the environment type the command
myproject\Scripts\activate.bat
Once the environment is activated, you will see this result in the command prompt:
(myproject) C:\Users\Your Name
Note: Always activate the virtual environment everytime you are working on your project
(myproject) ... $ python -m pip install Django
Check Django Version
(myproject) C:\Users\Your Name> django-admin --version
go to where you want to store your project files and type the command in the command prompt
django-admin startproject tracking_app
it should create a folder called tracking_app with the following structure
tracking_app
manage.py
tracking_app
__init__.py
asgi.py
settings.py
urls.py
wsgi.py
Run the Django Project inside your tracking_app folder type the command in the command prompt
python manage.py runserver
this will produce this
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
March 19, 2025 - 14:19:38
Django version 5.1.7, using settings 'my_tennis_club.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Open your browser and type 127.0.0.1:8000/