Follow tutorial on How to Create a Django Project on Real Python to create a new Django project with one Django app from scratch.
Note: This project targets Python 3.12 or later.
You can run the provided example project on your local machine by following the steps outlined below.
Create a new virtual environment:
$ python3 -m venv venvActivate the virtual environment:
$ source venv/bin/activateInstall the dependencies for this project:
(venv) $ python -m pip install -r requirements.txtNavigate into the Django project folder:
(venv) $ cd setup/Run the Django development server:
(venv) $ python manage.py runserverNavigate to http://localhost:8000/ to see the starter project in action.