Django — Get Started
Installation
# Create virtual environment
python -m venv venv
# Activate (Windows)
venv\Scripts\activate
# Activate (macOS/Linux)
source venv/bin/activate
# Install Django
pip install django
Create Project
django-admin startproject mysite
cd mysite
Project Structure
mysite/
├── manage.py
└── mysite/
├── __init__.py
├── settings.py
├── urls.py
├── asgi.py
└── wsgi.py
Run Development Server
python manage.py runserver
Visit http://127.0.0.1:8000/
First App
python manage.py startapp blog
Add App to Settings
# settings.py
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
...
'blog',
]
Check Installation
python manage.py check
Mini Practice
- Create a virtual environment
- Install Django
- Create a project and app
- Run the development server
Up Next
Continue with Installation — detailed setup steps.
Related Topics
Frequently Asked Questions about Get Started
What is Get Started in Django?
Get Started is a fundamental concept in Django. This lesson explains it step by step with clear examples, making it easy for beginners to understand.
How do I learn Get Started?
Start by reading the explanation above, then try the code examples. Practice by modifying the examples and experimenting with different values. Hands-on practice is the best way to learn Get Started.
Why is Get Started important in Django?
Get Started is essential for Django development. Understanding this concept will help you write better code and solve real-world problems more effectively.