Django 101 CRUD: Todo Project - Part 01 Setup
Bhuvan
Technical Staff

Django 101 Topics
We Cover these topics in our Django 101 Series
- Django Setup
- MVT Logic
- Models
- Views
- Templates
- Model Forms
- CRUD
- URL Routing
1. Verifying Your Engine: Python Installation
Before we build the house, we need to make sure our primary power tool—Python—is ready to go. Think of Python as the engine of your car; without it, nothing moves.
Checking Requirements
- Action: Open your terminal or command prompt.
- Version Check: Ensure you have Python 3.10 or higher for the best compatibility with modern Django features.
- Documentation Link: Official Python Installation Guide
# Check if Python is installed
python --version
# Check if pip (Python package manager) is ready
pip --version
2. Preparing the Ground: The Virtual Environment
It is best practice to keep your project dependencies isolated. This ensures your To-Do app doesn’t conflict with other Python projects on your machine. Imagine if updating a tool for one project accidentally broke a completely different project—virtual environments prevent this "dependency chaos."
Why use venv?
- Isolation: Keeps the project's libraries separate from your global system.
- Consistency: Ensures every developer on the team uses the exact same version of Django.
# 1. Create the environment folder
python -m venv venv
# 2. Activate the environment
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
3. Installing the Framework: Django
With your isolated environment active (you should see (venv) in your terminal), it's time to bring in the heavy machinery.
Installation Workflow
- Command: We use
pipto fetch the latest stable version of Django from the Python Package Index (PyPI). - Verification: Always double-check that the installation was successful before moving to project creation.
- Documentation Link: Django Installation Guide
# Install Django
pip install django
# Verify the Django version
python -m django --version
4. Framing the Structure: `startproject`
Now, use the Django admin tool to generate the boilerplate code. We will call the project todo_site.
# Generate the project structure
django-admin startproject todo_site .
Pro Tip: The
.at the end is crucial. It tells Django to create the project files in the current folder rather than nesting them inside a new sub-directory. This keeps your file path clean.
Understanding the Files
manage.py: Your command-line "remote control" for the project. You'll use this to migrate databases and start the server.todo_site/: The inner directory containingsettings.py(the heart of your config) andurls.py(your project's GPS).
5. Visualizing the Setup Workflow
6. Running the Engine
Before we build the "To-Do" logic, let’s make sure the engine is running. Django comes with a built-in lightweight web server for development.
python manage.py runserver
Final Verification
- URL: Open your browser and go to
[http://127.0.0.1:8000](http://127.0.0.1:8000). - The Result: You should see the famous Django "The install worked successfully!" rocket ship page.
- Next Steps: In the next part, we will create our first App and define the database models to store our tasks!
Official Resources
Distribute Knowledge
Further Reading

Django DRF - Part 02 - Serializers & Views
Technical deep dive into modern architecture and development strategies.

Django DRF - Part 01 - ECommerce Model Architecture
Technical deep dive into modern architecture and development strategies.

🚀 5 Python Concepts You Must Master Before Your First Line of Django
Technical deep dive into modern architecture and development strategies.