Output
http://127.0.0.1:8000/about/
make a new directory for our code called pages and navigate into it
create a new virtual environment called .venv and activate it
install Django
create a new Django project called django_project
create a new app called pages
make a new directory for our code called pages and navigate into it
Create a folder, then open the terminal
code .
python -m venv .venv
create a new virtual environment called .venv and activate it
.venv\Scripts\Activate.ps1
install Django
python -m pip install django~=4.0.0
create a new Django project called django_project
python -m django startproject django_project .
create a new app called pages
python manage.py startapp pages
Migrate the database with migrate and start the local web server with runserver.
python manage.py migrate
python manage.py runserver
# django_project/settings.py
'DIRS': [BASE_DIR/"templates"],#new