Getting started with Django

  1. Download: https://www.djangoproject.com/download/
  2. Create first project: https://docs.djangoproject.com/en/5.2/intro/tutorial01/
  1. Create venv: python -m venv venv
  2. 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.")

Leave a Reply

Your email address will not be published. Required fields are marked *

error: