running django command from code code example Example 1: django runserver python manage.py runserver Example 2: django shell python manage.py shell