Skip to content

Commit dbcf24e

Browse files
committed
work on flask page
1 parent f117152 commit dbcf24e

File tree

1 file changed

+40
-31
lines changed

1 file changed

+40
-31
lines changed

content/pages/04-web-development/03-flask.markdown

Lines changed: 40 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ an alternative to Django projects with their monolithic structure and
6161
dependencies.
6262

6363

64-
### Flask Tutorials
64+
### Flask beginner tutorials
6565
* The Flask mega tutorial by
6666
[Miguel Grinberg](https://twitter.com/miguelgrinberg) is a perfect
6767
starting resource for using this web framework. Each post focuses on a
@@ -90,33 +90,11 @@ dependencies.
9090
book that are excellent resources worth the price, especially to support
9191
his continuous revisions to the content.
9292

93-
* [Microservices with Flask, Docker, and React](https://testdriven.io/)
94-
teaches how to spin up a reproducible Flask development environment with
95-
[Docker](/docker.html). It shows how to [deploy](/deployment.html) it to an
96-
Amazon EC2 instance then scale the services on Amazon EC2 Container Service (ECS).
97-
The [Flask Blueprints](https://testdriven.io/part-one-flask-blueprints) page
98-
is particularly handy for learning how to structure a large Flask project.
99-
100-
* [The Flask Extensions Registry](http://flask.pocoo.org/extensions/) is a
101-
curated list of the best packages that extend Flask. It's the first location
102-
to look through when you're wondering how to do something that's not in the
103-
core framework.
104-
10593
* [Explore Flask](http://exploreflask.com/) is a public domain book that
10694
was previously backed on Kickstarter and cost money for about a year before
10795
being open sourced. The book explains best practices and patterns for
10896
building Flask apps.
10997

110-
* [How I Structure My Flask Application](http://mattupstate.com/blog/how-i-structure-my-flask-applications/)
111-
walks through how this developer organizes the components and architecture
112-
for his Flask applications.
113-
114-
* [Adding phone calling to your web application](https://www.twilio.com/docs/tutorials/walkthrough/browser-calls/python/flask)
115-
is a killer Flask tutorial with all the code needed to create a
116-
web app that can dial phones and receive inbound calls.
117-
118-
* Nice post by Jeff Knupp on [Productionizing a Flask App](http://www.jeffknupp.com/blog/2014/01/29/productionizing-a-flask-application/).
119-
12098
* The blog post series "Things which aren't magic" covers how Flask's
12199
ubiquitous @app.route decorator works under the covers. There are two
122100
parts in the series,
@@ -142,6 +120,34 @@ dependencies.
142120
[blueprints](http://flask.pocoo.org/docs/0.10/blueprints/) for large
143121
projects.
144122

123+
* If you're not sure why `DEBUG` should be set to `False` in a production
124+
[deployment](/deployment.html), be sure to read this article on
125+
[how Patreon got hacked](http://labs.detectify.com/post/130332638391/how-patreon-got-hacked-publicly-exposed-werkzeug).
126+
127+
128+
### Intermediate to advanced Flask resources
129+
* [Microservices with Flask, Docker, and React](https://testdriven.io/)
130+
teaches how to spin up a reproducible Flask development environment with
131+
[Docker](/docker.html). It shows how to [deploy](/deployment.html) it to an
132+
Amazon EC2 instance then scale the services on Amazon EC2 Container Service (ECS).
133+
The [Flask Blueprints](https://testdriven.io/part-one-flask-blueprints) page
134+
is particularly handy for learning how to structure a large Flask project.
135+
136+
* [The Flask Extensions Registry](http://flask.pocoo.org/extensions/) is a
137+
curated list of the best packages that extend Flask. It's the first location
138+
to look through when you're wondering how to do something that's not in the
139+
core framework.
140+
141+
* [How I Structure My Flask Application](http://mattupstate.com/blog/how-i-structure-my-flask-applications/)
142+
walks through how this developer organizes the components and architecture
143+
for his Flask applications.
144+
145+
* [Adding phone calling to your web application](https://www.twilio.com/docs/tutorials/walkthrough/browser-calls/python/flask)
146+
is a killer Flask tutorial with all the code needed to create a
147+
web app that can dial phones and receive inbound calls.
148+
149+
* Nice post by Jeff Knupp on [Productionizing a Flask App](http://www.jeffknupp.com/blog/2014/01/29/productionizing-a-flask-application/).
150+
145151
* If you're looking for a fun tutorial with Flask and WebSockets, check out
146152
my blog post on creating
147153
[Choose Your Own Adventure Presentations with Reveal.js, Python and WebSockets](https://www.twilio.com/blog/2014/11/choose-your-own-adventure-presentations-with-reveal-js-python-and-websockets.html).
@@ -172,21 +178,19 @@ dependencies.
172178
is a great walkthrough for a common use case of ensuring an email address
173179
matches with the user's login information.
174180

175-
* If you're not sure why `DEBUG` should be set to `False` in a production
176-
[deployment](/deployment.html), be sure to read this article on
177-
[how Patreon got hacked](http://labs.detectify.com/post/130332638391/how-patreon-got-hacked-publicly-exposed-werkzeug).
178-
179181
* [Static websites with Flask](http://www.dougalmatthews.com/2017/Jan/13/static-websites-with-flask/)
180182
shows how to use Flask with
181183
[Frozen-Flask](http://pythonhosted.org/Frozen-Flask/) to generate a
182184
static website from a backend data source.
183185

184186

185187
### Open Source Flask Example Code
186-
Flask's lack of standard boilerplate project structure can be a double
187-
edged sword when you are figuring out how to scale the lines of code in
188-
your application. The following open source projects range from simple
189-
to complex and can give you ideas about how to working on your codebase.
188+
Flask's lack of standard boilerplate via a commandline interface for
189+
setting up your project structure is a double edged sword. When you
190+
get started with Flask you will have to figure out how to scale the
191+
files and modules for the code in your application. The following open
192+
source projects range from simple to complex and can give you ideas
193+
about how to working on your codebase.
190194

191195
* [Skylines](https://github.com/skylines-project/skylines) is an open source
192196
flight tracking web application built with Flask. You can check out a
@@ -215,6 +219,11 @@ to complex and can give you ideas about how to working on your codebase.
215219

216220

217221
### Flask project templates
222+
Flask's wide array of extension libraries comes at the cost of having a more
223+
complicated project setup. The following project templates provide a starter
224+
base that you can either use for your own applications or just learn various
225+
ways to structure your code.
226+
218227
* Use the
219228
[Flask App Engine Template](https://github.com/kamalgill/flask-appengine-template)
220229
for getting set up on Google App Engine with Flask.

0 commit comments

Comments
 (0)