- Download: https://www.djangoproject.com/download/
- Create first project: https://docs.djangoproject.com/en/5.2/intro/tutorial01/
- Create venv: python -m venv venv
py -m pip install Django==5.2
https://docs.djangoproject.com/en/5.2/intro/install
django-admin startproject myproject
cd myproject
python manage.py runserver
python manage.py startapp testapp
Add this to views.py file:
from django.http import HttpResponse
def index(request):
return HttpResponse("Hello, world. You're at the testapp index.")