Member-only story
The Ultimate Django Commands Cheat Sheet — Everything You Need! 🚀
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.
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