SitePoint
  • Premium
  • Library
  • Community
  • Jobs
  • Blog
LoginStart Free Trial
Python Web Development with Django and Flask: Getting Started
Python Web Development with Django and Flask: Getting Started
Notice of Rights
Notice of Liability
Trademark Notice
About SitePoint
Preface
Who Should Read This Book?
Do You Need a Framework?
Django vs Flask: General Trends
Getting Started with Django and Flask
Django vs Flask: Anatomy of a Project
Django vs Flask: Summary
Final Thoughts
Submit Files through Django Forms
Add CAPTCHA to Django Forms
Create Partial Forms
Use Ajax to Submit Forms
Summary
Creating Flask-WTF Forms
Custom Field Validators
Protecting Against CSRF Attacks
Using HTML5 Forms and Flask-WTF
Django QuerySets
Executing Queries through the Django Shell
Using Query Results in Templates
Make Raw SQL Queries
Final Thoughts
Setting Up the Flask App
Accessing MySQL Database
ORM Explained
Whether or Not to Use ORM
Using SQLAlchemy
Using Database Objects in Templates
Handling Complex SQL Queries
Handling Data Migration
Wrapping Up
Prerequisites
The Basics of Writing Pytests for Flask
Project Setup
Test Plan
Testing Our Microblog App
Summary
The Problem and the Solution
How it Works
Practical Examples
Troubleshooting
Wrap Up
Further Reading

Community Questions