python program and django code example Example 1: create new django project django-admin startproject mysite Example 2: django pip install Django==3.1.5