Member-only story

The Ultimate Django Commands Cheat Sheet — Everything You Need! 🚀

5 min readFeb 22, 2025
Photo by hannah joshua on Unsplash

Django’s command-line interface (CLI) is packed with powerful commands that make development faster and easier.

In this guide we will dive into comprehensive cheat sheet that will cover essential Django commands for managing projects, apps, databases, migrations, and more!

Project Management

Django projects consist of multiple apps. The following commands help you create and manage them effectively.

Photo by Marten Bjork on Unsplash

1. Create a New Django Project

This command creates a new Django project with the specified name.

django-admin startproject project_name

2. Run the Development Server

This command starts Django’s built-in web server for local development.

python manage.py runserver

This will run on default address: 127.0.0.1:8000

You can even run on a custom port by adding the <port number>:

python manage.py runserver 8001

--

--

Aashish Kumar
Aashish Kumar

Written by Aashish Kumar

Hi, I’m Aashish Kumar, a passionate software engineer from India 🇮🇳, specialize in Python | Django | AI | LLM | Full Stack Development.

No responses yet