Skip to content

Commit f88b6ee

Browse files
committed
Update Flask related Information
1 parent 5fe6c05 commit f88b6ee

File tree

10 files changed

+104
-27
lines changed

10 files changed

+104
-27
lines changed

docs/glossary.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ sidebar_label : Glossary
7777

7878
Docker is an open-source platform and set of tools designed to simplify the development, deployment, and management of applications through containerization.
7979

80+
## F
81+
82+
**[Flask](/content/what-is/flask/)**
83+
84+
Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications.
85+
8086
## H
8187

8288
**[HTMX](/content/what-is/htmx/)**

docs/technologies/flask/01-getting-started.mdx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ In this presentation, I'll provide you with an overview of Flask, its key featur
1414

1515
![Getting Started with Flask - Tutorial provided by AppSeed](https://github-production-user-asset-6210df.s3.amazonaws.com/51070104/268566349-c41e65a5-2ab9-4b54-8cbc-350ab6da746c.png)
1616

17-
## What is Flask?
17+
## What is Flask
1818

1919
- Flask is a micro web framework for Python.
2020
- It's designed to be simple, lightweight, and easy to use.
2121
- Flask provides the essentials for building web applications without imposing too much structure or complexity.
2222

23-
## Key Features of Flask
23+
## Key Features of Flask
2424

2525
**Minimalistic**
2626

@@ -62,7 +62,7 @@ Comes with a built-in development server for testing your application locally.
6262
6363
Flask's simplicity makes it a great choice for beginners.
6464

65-
## Code Sample
65+
## Code Sample
6666

6767
Let's look at some basic Flask code samples to get a feel for how it works.
6868

@@ -128,12 +128,10 @@ Its simplicity and flexibility make it a great choice for a wide range of projec
128128

129129
To dive deeper into Flask, explore its documentation (https://flask.palletsprojects.com/) and consider exploring extensions and advanced topics like authentication, database integration, and deployment.
130130

131-
<br />
132-
133131
## ✅ Resources
134132

135133
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
136-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
137-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
134+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
135+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
138136
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder
139137

docs/technologies/flask/01-releases.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,9 @@ This page presensts the history of Flask starting from the latest versions.
6767
- Improved request and response objects.
6868
- CSRF enhancements.
6969

70-
<br />
71-
7270
## ✅ Resources
7371

7472
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
75-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
76-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
73+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
74+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
7775
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder

docs/technologies/flask/async-support.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,16 @@ if __name__ == '__main__':
7171

7272
In this example, the gevent-based WSGIServer enables multiple requests to be handled concurrently without blocking.
7373

74-
7574
## ✅ In Summary
7675

7776
Please note that asynchronous programming is typically used for I/O-bound operations to improve the responsiveness and efficiency of your web application.
7877
Flask is well-suited for such use cases when combined with appropriate asynchronous libraries like `asyncio` or gevent.
7978

8079
However, for CPU-bound tasks, you might want to explore other asynchronous frameworks like FastAPI, which has native support for asynchronous programming.
8180

82-
<br />
83-
8481
## ✅ Resources
8582

8683
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
87-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
88-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
84+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
85+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
8986
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title : What is a Flask Blueprint
3+
sidebar_label : Blueprints
4+
---
5+
6+
# What is a Flask Blueprint
7+
8+
<SubHeading>Flask Blueprints, a short introduction.</SubHeading>
9+
10+
A **Flask Blueprint** is a way to organize a Flask web application into smaller, reusable components or modules.
11+
It's a feature provided by the `Flask Web framework` to help you structure your application as it grows in complexity.
12+
13+
![What is a Flask Blueprint - Tutorial provided by AppSeed.](https://user-images.githubusercontent.com/51070104/268566349-c41e65a5-2ab9-4b54-8cbc-350ab6da746c.png)
14+
15+
**Blueprints** allow you to group related routes, views, templates, and static files into separate modules, making your Flask application more organized and maintainable.
16+
17+
> Here are some **key aspects of Flask Blueprints**
18+
19+
## **Modular Organization**
20+
21+
Blueprints enable you to break down your Flask application into smaller, self-contained modules.
22+
23+
Each module represents a specific part of your application, such as user authentication, blog management, or API endpoints.
24+
25+
## **Reusability**
26+
27+
Once defined, a Blueprint can be easily reused in different parts of your application or even in other Flask projects. This promotes code reuse and modularity.
28+
29+
## **Independence**
30+
31+
Blueprints are independent of the main application. They can be developed, tested, and maintained separately from the core application. This separation of concerns helps in keeping your codebase clean and manageable.
32+
33+
## **Routing**
34+
35+
Blueprints allow you to define routes, URL patterns, and view functions just like you would in the main Flask application. These routes are scoped under the Blueprint, making it easy to organize and maintain a consistent URL structure.
36+
37+
## **Templates**
38+
39+
You can associate templates with a Blueprint. This means that you can define template files specific to a Blueprint, allowing for better organization of your HTML files.
40+
41+
## **Static Files**
42+
43+
Blueprints can also include static files (CSS, JavaScript, images, etc.), and Flask will automatically handle their routing and serving.
44+
45+
## **Code Sample**
46+
47+
Here's an example of how to define and register a Flask Blueprint:
48+
49+
```python
50+
from flask import Blueprint, render_template
51+
52+
# Create a Blueprint instance
53+
blog_blueprint = Blueprint('blog', __name__)
54+
55+
# Define a route within the Blueprint
56+
@blog_blueprint.route('/')
57+
def index():
58+
return render_template('blog/index.html')
59+
60+
# Register the Blueprint with the Flask application
61+
app.register_blueprint(blog_blueprint, url_prefix='/blog')
62+
```
63+
64+
In this example, we create a Blueprint called "blog," define a route for the root URL ('/'), and associate a template with it.
65+
66+
We then register the Blueprint with the Flask application using `app.register_blueprint()`.
67+
68+
## ✅ In Summary
69+
70+
By using Blueprints, you can structure your Flask application in a more organized and maintainable way, especially as it grows in size and complexity.
71+
72+
This modular approach also makes it easier for multiple developers to work on different parts of the application simultaneously.
73+
74+
## ✅ Resources
75+
76+
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
77+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
78+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
79+
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder

docs/technologies/flask/integrate-celery.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,6 @@ Make sure to adapt the code and configurations to your specific needs and securi
159159
## ✅ Resources
160160

161161
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
162-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
163-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
162+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
163+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
164164
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder

docs/technologies/flask/multitenancy.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ The specific implementation may vary depending on your project's requirements an
7777
## ✅ Resources
7878

7979
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
80-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
81-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
80+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
81+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
8282
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder
83-

docs/technologies/flask/production-checklist.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,6 +447,6 @@ Here are some of the key takeaways from this article:
447447
## ✅ Resources
448448

449449
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
450-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
451-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
450+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
451+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
452452
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder

docs/technologies/flask/run-on-replit.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,6 @@ We were able to successfully start the Flask application and view the dashboard.
195195
## ✅ Resources
196196

197197
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
198-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
199-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
198+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
199+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
200200
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder

docs/technologies/flask/socketio.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,6 @@ Socket.IO is a powerful tool that can be used to create a variety of real-time a
409409
## ✅ Resources
410410

411411
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
412-
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
413-
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
412+
- 👉 [Deploy Projects on Aws, Azure, and DO](https://www.docs.deploypro.dev/) via **DeployPRO**
413+
- 👉 Create landing pages with [Simpllo, an open-source site builder](https://www.simpllo.com/)
414414
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder

0 commit comments

Comments
 (0)