← All roadmaps
Web · High demand

Python Backend (Flask/Django) roadmap

Flask and Django run the backends of startups, SaaS products, and data platforms. Python backend skills pair perfectly with data and AI work, making you versatile for product and service companies alike.

beginner

Flask Fundamentals & HTTP Basics

About 4 weeks

Topics

  • HTTP methods, status codes, request/response cycle
  • Flask setup: routes and templates with Jinja2
  • Forms, redirects, sessions, and cookies
  • Blueprints and application structure
  • SQLite with Flask-SQLAlchemy basics
  • REST principles and JSON APIs in Flask
  • Virtual environments and pip requirements
  • Running and debugging Flask in development

Free resources

Hands-on practice

  1. Build a personal blog in Flask with Jinja templates
  2. Create a JSON REST API for a task manager
  3. Add user sessions and flash messages to an app
  4. Structure a Flask project with blueprints and a config module
Milestone checkpoint: You can build a working Flask app with templates, forms, and a SQLite database, and you can explain what happens between a browser request and your route function.
intermediate

Django, Auth & Database Design

About 6 weeks

Topics

  • Django MTV: models, views, templates, ORM
  • Django admin, migrations, and querysets
  • Django REST Framework: serializers, viewsets, routers
  • Authentication: sessions, tokens, permissions
  • Flask-Login, password hashing, and CSRF
  • Database design: relations, indexes, normalization
  • Testing with pytest and the Django test client
  • Sending email and background tasks with Celery basics

Free resources

Hands-on practice

  1. Build a Django blog with auth, comments, and a customized admin
  2. Create a DRF API with token auth and throttling
  3. Design a normalized schema for an e-commerce backend
  4. Write pytest suites for a Flask API until green
Milestone checkpoint: You build Django apps with the ORM confidently, expose clean DRF APIs with auth and permissions, and your database schemas are normalized with sensible indexes.
advanced

Production Django/Flask & DevOps

About 8 weeks

Topics

  • Class-based views vs function views at scale
  • Caching: Django cache framework and Redis
  • Async views, ASGI, and Channels basics
  • Security: OWASP for Django/Flask, secrets management
  • Gunicorn/uWSGI, Nginx, and static/media handling
  • Docker, CI/CD, and deploying on Render or a VPS
  • Monitoring: logging, Sentry, health endpoints
  • Scaling reads: read replicas and query optimization

Free resources

Hands-on practice

  1. Deploy a Django app with Docker, Nginx, and HTTPS
  2. Add Redis caching and cut a slow page's load time measurably
  3. Set up Sentry and structured logging on a project
  4. Optimize 10 N+1 queries using select_related and prefetch_related
Milestone checkpoint: You deploy Django and Flask apps to production with Docker and CI, monitor them, fix performance regressions with query optimization, and can justify your caching strategy.

Track your progress

Sign in to mark stages complete and watch your roadmap fill up on your dashboard.

Sign in