Django Command Reference

Date: 03 December 2020

Category: Python

Tag: Django

The purpose of this page is to record some key commands that are used regularly.

Create a new project

Command to create a new django project:

django-admin startproject <project name>

To create the management app inside the current directory (i.e. don’t create a new directory):

django-admin startproject <project name> .

Create a new app

Command to create a new django app in a project:

python manage.py startapp <app name>