-
Notifications
You must be signed in to change notification settings - Fork 20
[Docs+] Build a Newsletter Platform With Flask and MongoDB #267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
9a348bc
e30f291
adac78d
605d9d4
ea5fc49
60c52fd
d0ec742
0aac3a1
ca29f64
a877430
070b2df
f0c6ab8
059faec
533958b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -16,19 +16,19 @@ | |||||||||
:values: tutorial | ||||||||||
|
||||||||||
.. meta:: | ||||||||||
:keywords: flask, celery, integration, code example | ||||||||||
:keywords: code example, batch, framework | ||||||||||
|
||||||||||
Overview | ||||||||||
-------- | ||||||||||
|
||||||||||
In this tutorial, you can learn how to build a newsletter platform using | ||||||||||
MongoDB, Celery, and Flask. This application allows users to subscribe to | ||||||||||
In this tutorial, you can learn how to use MongoDB, Celery, and Flask | ||||||||||
to build a newsletter platform. This application allows users to subscribe to | ||||||||||
newsletters, and administrators to manage and send batch emails asynchronously. | ||||||||||
|
||||||||||
Celery | ||||||||||
~~~~~~ | ||||||||||
|
||||||||||
Celery is an open-source distributed task queue that makes handling large | ||||||||||
Celery is an open-source distributed task queue that handles large | ||||||||||
volumes of messages efficiently. It supports asynchronous processing and task | ||||||||||
scheduling. For more information, see the `Celery webpage | ||||||||||
<https://docs.celeryq.dev/en/main/index.html>`__. | ||||||||||
|
@@ -51,40 +51,45 @@ | |||||||||
Prerequisites | ||||||||||
~~~~~~~~~~~~~ | ||||||||||
|
||||||||||
Ensure you have the following components installed and set up before you start | ||||||||||
Ensure that you have the following components installed and set up before you start | ||||||||||
this tutorial: | ||||||||||
|
||||||||||
- A MongoDB Cluster. We recommend setting up a cluster using Atlas. See the | ||||||||||
- A MongoDB cluster. We recommend that you use Atlas. To learn how | ||||||||||
to create an Atlas cluster, see the | ||||||||||
:atlas:`Get Started with Atlas </getting-started?tck=docs_driver_python>` page | ||||||||||
in the Atlas documentation. | ||||||||||
- A database in your cluster called ``newsletter``. For more information, see | ||||||||||
- A database names ``newsletter`` in your cluster. For more information, see | ||||||||||
the :atlas:`Create a Database </atlas-ui/databases/#create-a-database>` page | ||||||||||
in the Atlas guide. | ||||||||||
- `RabbitMQ <https://www.rabbitmq.com/docs/download>`__ (message broker for Celery) | ||||||||||
- `Gmail <www.gmail.com>`__ (to use as an SMTP) | ||||||||||
- `RabbitMQ <https://www.rabbitmq.com/docs/download>`__ to use as a message broker for Celery. | ||||||||||
- `Gmail <www.gmail.com>`__ to use as an SMTP server. For more information about | ||||||||||
SMTP servers, see the `Simple Mail Transfer Protocol | ||||||||||
<https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol>`__ wikipedia page. | ||||||||||
|
SMTP servers, see the `Simple Mail Transfer Protocol | |
<https://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol>`__ wikipedia page. | |
SMTP servers, see the :wikipedia:`Simple Mail Transfer Protocol | |
<Simple_Mail_Transfer_Protocol>`__ Wikipedia page. |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd recommend 3.9 or later, since 3.8 is end of life and the current version of PyMongo only supports 3.9+.
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
following files use `Fetch API calls | |
<https://en.wikipedia.org/wiki/XMLHttpRequest#Fetch_alternative>`__. They also | |
following files use :wikipedia:`Fetch API calls | |
<XMLHttpRequest#Fetch_alternative>`__. They also |
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The script for the admin page displays an alert to the user which depends on the | |
The script for the admin page displays an alert to the user that depends on the |
Check failure on line 412 in source/integrations/flask-celery-integration.txt
GitHub Actions / TDBX Vale rules
[vale] reported by reviewdog 🐶
[MongoDB.Accessibility] Don't use language (such as 'normal') that defines people by their disability.
Raw Output:
{"message": "[MongoDB.Accessibility] Don't use language (such as 'normal') that defines people by their disability.", "location": {"path": "source/integrations/flask-celery-integration.txt", "range": {"start": {"line": 412, "column": 19}}}, "severity": "ERROR"}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.