1.What Django is
Django is a Python web framework: tools and conventions for turning an HTTP request into a response, backed by a database, without wiring the plumbing yourself. Install with pip, then build on top of it.
Key features
- Django is a Python package, installed with `pip install django`
- It turns an HTTP request into an HTTP response through a fixed, well-defined pipeline
- `django-admin startproject` scaffolds a runnable project in seconds
- It ships an ORM, an admin site, auth, sessions, and a template engine by default
- One project can hold many reusable "apps" — see project vs. application
- HTTP request — from a browser or client
- Django — routes, queries, renders
- Database — via the ORM
- HTTP response — HTML, JSON, a redirect
Command
pip install django
django-admin startproject mysite
cd mysite
python manage.py runserverDjango is a full Python web framework — routing, ORM, admin, auth, and templates all included and wired together, not a library you assemble piece by piece.