Home Page Icon
Home Page
Table of Contents for
Postscript
Close
Postscript
by Italo Maia
Building Web Applications with Flask
Building Web Applications with Flask
Table of Contents
Building Web Applications with Flask
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Flask in a Flask, I Mean, Book
An introduction to Flask and its features
Summary
2. First App, How Hard Could it Be?
Hello World
Prerequisites and tools
Setting up a virtual environment
Understanding the "Hello World" app
Serving HTML pages
Summary
3. Man, Do I Like Templates!
What is Jinja2 and how is it coupled with Flask?
What can you do with Jinja2?
Control structures
Macros
Extensions
Filters
Messing with the template context
Summary
4. Please Fill in This Form, Madam
HTML forms for the faint of heart
Handling forms
WTForms and you
Flask-WTF
Integration with WTForms
Securing forms with a CSRF token
Challenges
Summary
5. Where Do You Store Your Stuff?
SQLAlchemy
Concepts
Hands on
Flask-SQLAlchemy
MongoDB
MongoEngine
Flask-MongoEngine
Relational versus NoSQL
Summary
6. But I Wanna REST Mom, Now!
Beyond GET
Flask-Restless
Summary
7. If Ain't Tested, It Ain't Game, Bro!
What kinds of test are there?
Unit testing
Behavior testing
Flask-testing
LiveServer
Extra assertions
JSON handle
Fixtures
Extra – integration testing
Summary
8. Tips and Tricks or Flask Wizardry 101
Overengineering
Premature optimization
Blueprints 101
Oh God, please tell me you have the logs…
Debugging, DebugToolbar, and happiness
Flask-DebugToolbar
Sessions or storing user data between requests
Exercise
Summary
9. Extensions, How I Love Thee
How to configure extensions
Flask-Principal and Flask-Login (aka Batman and Robin)
Admin like a boss
Custom pages
Summary
10. What Now?
You deploy better than my ex
Placing your code in a server
Setting up your database
Setting up the web server
StackOverflow
Structuring your projects
Summary
Postscript
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Postscript
Index
A
application deployment
about /
You deploy better than my ex
code, placing in server /
Placing your code in a server
database, setting up /
Setting up your database
web server, setting up /
Setting up the web server
assertions
assert_context() /
Extra assertions
assert_redirects() /
Extra assertions
assert_template_used() /
Extra assertions
assert404() /
Extra assertions
auto-escaping
about /
What can you do with Jinja2?
autocommit
about /
Hands on
automated tests
unit testing /
What kinds of test are there?
behavior testing /
What kinds of test are there?
B
Behavior Driven Development (BDD)
about /
LiveServer
behavior testing
about /
What kinds of test are there?
,
Behavior testing
example /
Behavior testing
black-box tests
about /
What kinds of test are there?
block statement
about /
Control structures
blueprints
about /
Blueprints 101
example /
Blueprints 101
using /
Blueprints 101
creating /
Blueprints 101
BSON Types
reference link /
MongoDB
C
columns
about /
Concepts
connection pool
about /
Hands on
reference link /
Hands on
control structures
about /
Control structures
if statement /
Control structures
for statement /
Control structures
block statement /
Control structures
extends statement /
Control structures
include statement /
Control structures
set statement /
Control structures
Create, Read, Update, Delete (CRUD)
about /
Admin like a boss
CSRF
used, for securing forms /
Securing forms with a CSRF token
about /
Securing forms with a CSRF token
custom pages
adding /
Custom pages
D
database
setting up /
Setting up your database
database normalization
reference link /
Concepts
data normalization
about /
Concepts
debugging
about /
Debugging, DebugToolbar, and happiness
with Flask-DebugToolbar /
Debugging, DebugToolbar, and happiness
development environment
prerequisites /
Prerequisites and tools
tools, using /
Prerequisites and tools
DigitalOcean
URL /
Placing your code in a server
Document-object Mapper (DOM)
about /
MongoEngine
do extension
about /
Extensions
E
entities, Flask-Principal
Identity /
Flask-Principal and Flask-Login (aka Batman and Robin)
IdentityContext /
Flask-Principal and Flask-Login (aka Batman and Robin)
Need /
Flask-Principal and Flask-Login (aka Batman and Robin)
Permission /
Flask-Principal and Flask-Login (aka Batman and Robin)
extends statement
about /
Control structures
extensions
about /
Extensions
do extension /
Extensions
with extension /
Extensions
configuring /
How to configure extensions
F
filters
about /
Filters
fixtures
about /
Fixtures
example /
Fixtures
integration testing /
Extra – integration testing
Flask
features /
An introduction to Flask and its features
overview /
An introduction to Flask and its features
URL, for license /
An introduction to Flask and its features
Flask-Admin
about /
Admin like a boss
example /
Admin like a boss
Flask-Boilerplate
URL /
Structuring your projects
Flask-DebugToolbar
about /
Flask-MongoEngine
,
Flask-DebugToolbar
used, for debugging /
Flask-DebugToolbar
Flask-Empty
about /
Extensions
URL /
Extensions
,
WTForms and you
,
Structuring your projects
Flask-Login
about /
Flask-Principal and Flask-Login (aka Batman and Robin)
example /
Flask-Principal and Flask-Login (aka Batman and Robin)
Flask-MongoEngine
about /
Flask-MongoEngine
features /
Flask-MongoEngine
example /
Flask-MongoEngine
Flask-Principal
about /
Flask-Principal and Flask-Login (aka Batman and Robin)
URL /
Flask-Principal and Flask-Login (aka Batman and Robin)
entities /
Flask-Principal and Flask-Login (aka Batman and Robin)
example /
Flask-Principal and Flask-Login (aka Batman and Robin)
Flask-Admin /
Admin like a boss
custom pages, adding /
Custom pages
Flask-Restless
about /
Flask-Restless
example /
Flask-Restless
Flask-Skeleton
URL /
Structuring your projects
Flask-SQLAlchemy
about /
Flask-SQLAlchemy
example /
Flask-SQLAlchemy
Flask-SQLalchemy
about /
Fixtures
Flask-testing
URL /
Behavior testing
about /
Flask-testing
LiveServer /
LiveServer
assertions /
Extra assertions
JSON handle /
JSON handle
Flask-WTF
about /
Flask-WTF
URL /
Flask-WTF
features /
Flask-WTF
integrating, with WTForms /
Integration with WTForms
forms, securing with CSRF /
Securing forms with a CSRF token
challenges /
Challenges
foreign key
about /
Concepts
forms
handling /
Handling forms
securing, with CSRF /
Securing forms with a CSRF token
for statement
about /
Control structures
foundation.zurb framework
URL /
Serving HTML pages
fuzzy testing
about /
Fixtures
G
Gherkin language
about /
Behavior testing
URL /
Behavior testing
H
Hello World app
about /
Hello World
creating /
Understanding the "Hello World" app
HTML
about /
HTML forms for the faint of heart
reference link /
HTML forms for the faint of heart
HTML forms
about /
HTML forms for the faint of heart
example /
HTML forms for the faint of heart
HTML pages
serving /
Serving HTML pages
I
if statement
about /
Control structures
include statement
about /
Control structures
input field
reference link /
HTML forms for the faint of heart
integration testing
about /
Extra – integration testing
J
JavaScript
reference link /
MongoDB
Jinja2
about /
What is Jinja2 and how is it coupled with Flask?
URL /
What is Jinja2 and how is it coupled with Flask?
using /
What can you do with Jinja2?
control structures /
Control structures
macros /
Macros
extensions /
Extensions
filters /
Filters
template context, modifying /
Messing with the template context
JSON
reference link /
MongoDB
L
lettuce
URL /
Behavior testing
Light Table editor
URL /
Understanding the "Hello World" app
Linode
URL /
Placing your code in a server
LiveServer
about /
LiveServer
logging
about /
Oh God, please tell me you have the logs…
example /
Oh God, please tell me you have the logs…
purpose /
Oh God, please tell me you have the logs…
M
macros
about /
Macros
advantages /
Macros
Mint
URL /
Prerequisites and tools
mixin
reference link /
Admin like a boss
MongoDB
about /
MongoDB
installing /
MongoDB
example /
MongoDB
rules /
MongoDB
MongoEngine /
MongoEngine
Flask-MongoEngine /
Flask-MongoEngine
MongoEngine
about /
MongoEngine
installing /
MongoEngine
example /
MongoEngine
reference link /
MongoEngine
MxN relationship
about /
Concepts
N
Nginx
using /
Setting up the web server
normal forms
reference link /
Concepts
NoSQL database
versus relational database /
Relational versus NoSQL
O
Oracle
about /
Hands on
overengineering
about /
Overengineering
P
PgAdmin
about /
Setting up your database
URL /
Setting up your database
PhantomJS
about /
Behavior testing
,
LiveServer
URL /
LiveServer
Postgres
URL, for installing /
Setting up your database
premature optimization
about /
Premature optimization
primary key
about /
Concepts
privileges
about /
Setting up your database
projects
structuring /
Structuring your projects
pseudo-random data
about /
Fixtures
PyCharm IDE
URL /
Understanding the "Hello World" app
PyMongo
about /
MongoEngine
Python 2.x
about /
Hello World
R
RamNode
URL /
Placing your code in a server
regular expressions (Regex)
references /
What is Jinja2 and how is it coupled with Flask?
relational database
versus NoSQL database /
Relational versus NoSQL
RESTful Web Service API
data, recording to database /
Beyond GET
rows
about /
Concepts
S
Selenium
about /
Behavior testing
server
about /
Placing your code in a server
code, placing /
Placing your code in a server
sessions
about /
Sessions or storing user data between requests
using /
Sessions or storing user data between requests
example /
Sessions or storing user data between requests
set statement
about /
Control structures
SQL
reference link /
SQLAlchemy
SQLAlchemy
about /
SQLAlchemy
concepts /
Concepts
installing /
Hands on
example /
Hands on
reference link /
Hands on
Flask-SQLAlchemy /
Flask-SQLAlchemy
SQL Injection Attack
about /
Flask-SQLAlchemy
SQLite
about /
SQLAlchemy
URL /
SQLAlchemy
StackOverflow
about /
StackOverflow
URL /
StackOverflow
T
tables
about /
Concepts
tags
about /
HTML forms for the faint of heart
template context
modifying /
Messing with the template context
tests
about /
What kinds of test are there?
black-box tests /
What kinds of test are there?
white-box tests /
What kinds of test are there?
tools
using /
Prerequisites and tools
transactions
about /
Concepts
,
Hands on
U
Ubuntu
URL /
Prerequisites and tools
unit
about /
Unit testing
unit testing
about /
What kinds of test are there?
example /
Unit testing
UpStart
using /
Setting up the web server
user data
storing, between requests /
Sessions or storing user data between requests
uWSGI
using /
Setting up the web server
V
virtual environment
setting up /
Setting up a virtual environment
virtual machines (VM)
about /
Placing your code in a server
W
web server
setting up /
Setting up the web server
white-box tests
about /
What kinds of test are there?
with extension
about /
Extensions
WTForms
about /
WTForms and you
URL /
WTForms and you
example /
WTForms and you
Flask-WTF, integrating /
Integration with WTForms
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset