Skip to content

Commit 602ad61

Browse files
committed
add page for flask code examples
1 parent 031174f commit 602ad61

File tree

5 files changed

+57
-7
lines changed

5 files changed

+57
-7
lines changed

content/pages/examples/django/django-code-examples.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ meta: Python code examples that show how to use the Django web application frame
1212
<a href="http://www.djangoproject.com/" style="border: none;"><img src="/img/logos/django.png" width="100%" alt="Official Django logo. Trademark Django Software Foundation." class="shot" style="margin-top:20px"></a>
1313

1414

15-
## Django Projects
15+
## Django Example Projects
1616
Part of Django's widespread adoption comes from its broad ecosystem of
1717
open source code libraries and example projects.
1818

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
title: Flask Core and Extensions Code Examples
2+
category: page
3+
slug: flask-core-extensions-code-examples
4+
sortorder: 50500
5+
toc: False
6+
sidebartitle: Flask Core and Extensions Code Examples
7+
meta: Learn how to create Flask applications with easy to copy and paste Python code examples for the Flask web framework.
8+
9+
10+
[Flask](/flask.html) is a Python [web framework](/web-frameworks.html).
11+
12+
<a href="http://flask.pocoo.org/" style="border: none;"><img src="/img/logos/flask.jpg" width="100%" alt="Official Flask logo. Flask Artwork License." class="technical-diagram"></a>
13+
14+
15+
## Flask Example Projects
16+
Flask's large ecosystem of extensions make it easier for developers to
17+
build common web app features such as authentication,
18+
[database](/databases.html) operations and
19+
[APIs](/application-programming-interfaces.html) even though support
20+
is not built into the core Flask [web framework](/web-frameworks.html).
21+
This design is by choice in contrast to [Django](/django.html)'s
22+
"batteries-included" approach. Either framework's design decision
23+
is a viable approach depending on the needs and requirements of the
24+
application you are building.
25+
26+
The extensive collection of Flask libraries is a great source for
27+
learning the framework through reading code examples.
28+
29+
This alphabetically-ordered list of projects provide helpful example
30+
code for building your own web apps.
31+
32+
33+
### flask-base
34+
[flask-base](https://github.com/hack4impact/flask-base)
35+
([project documentation](http://hack4impact.github.io/flask-base/))
36+
is a boilerplate starter application that is pre-configured with
37+
[SQLAlchemy](/sqlalchemy.html), [Redis](/redis.html), user
38+
authentication and other features.
39+
40+
flask-base's code is open sourced
41+
[under the MIT license](https://github.com/hack4impact/flask-base/blob/master/LICENSE.md).
42+
43+
44+
### Flasky
45+
[Flasky](https://github.com/miguelgrinberg/flasky) is the wonderful
46+
example application by
47+
[Miguel Grinberg](https://github.com/miguelgrinberg) that he builds
48+
while teaching developers how to use [Flask](/flask.html) in
49+
[his books and videos](https://courses.miguelgrinberg.com/). Flasky
50+
is [open sourced under the MIT license](https://github.com/miguelgrinberg/flasky/blob/master/LICENSE).
51+
52+
Code examples from Flasky are shown on the following pages:
53+
54+
* [flask_sqlalchemy SQLAlchemy Model](/flask-sqlalchemy-model-examples.html)
55+

theme/templates/article.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ <h1 style="font-size: 36px;">{{ article.title }}</h1>
5353
{% else %}
5454
<div class="c3">
5555
{% include "article-sidebar.html" %}
56-
{% include "sponsor/all-sponsor.html" %}
5756
</div>
5857
{% endif %}
5958
</div>

theme/templates/sponsor.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
{% include "sponsor/begin-sponsor-panel.html" %}
2-
{% include "sponsor/rollbar.html" %}
3-
{% include "sponsor/end-sponsor-panel.html" %}
4-
51
{% if false %}
62
{% if page.sortorder[0:2] == "01" or page.sortorder[0:2] == "02" %}
73
{% include "sponsor/dual-premium-standard.html" %}

theme/templates/table-of-contents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ <h4 class="bp"><a href="/django-utils-html-format-html-examples.html">django.uti
255255
<h4 class="bp"><a href="/django-utils-timezone-examples.html">django.utils.timezone</a></h4>
256256
</div>
257257
<div class="c6">
258-
<h3 style="margin-top:16px">Flask-SQLAlchemy examples</h3>
258+
<h3 style="margin-top:16px"><a href="/flask-core-extensions-code-examples.html">Flask core and extensions examples</a></h3>
259259
<h4 class="bp"><a href="/flask-sqlalchemy-model-examples.html">flask_sqlalchemy.SQLAlchemy.Model</a></h4>
260260

261261
</div>

0 commit comments

Comments
 (0)