Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Table of Contents
Mastering Flask
Mastering Flask
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
1. Getting Started
Python package management with pip
Dependency sandboxing with virtualenv
The beginning of our project
Summary
2. Creating Models with SQLAlchemy
Our first model
CRUD
Relationships between models
The convenience of SQLAlchemy sessions
Database migrations with Alembic
Summary
3. Creating Views with Templates
Creating our views
Flask WTForms
Summary
4. Creating Controllers with Blueprints
Error pages
Class-based views
Blueprints
Summary
5. Advanced Application Structure
Application factories
Summary
6. Securing Your App
Using the session
Flask Login
Summary
7. Using NoSQL with Flask
RDBMS versus NoSQL
MongoDB in Flask
Leveraging the power of NoSQL
Summary
8. Building RESTful APIs
Setting up a RESTful Flask API
GET requests
POST requests
PUT requests
DELETE requests
Summary
9. Creating Asynchronous Tasks with Celery
Setting up Celery and RabbitMQ
Creating tasks in Celery
Running Celery tasks
Monitoring Celery
Creating a reminder app
Creating a weekly digest
Summary
10. Useful Flask Extensions
Flask Debug Toolbar
Flask Cache
Flask Assets
Flask Admin
Flask Mail
Summary
11. Building Your Own Extension
Modifying the response with Flask extensions
Summary
12. Testing Flask Apps
How does testing work?
Unit testing the application
User interface testing
Test coverage
Test-driven development
Summary
13. Deploying Flask Apps
Deploying on Heroku
Deploying on Amazon web services
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →