Example app for Contentful in Python
contentful, updated
🕥
2023-01-18 09:27:52
Note: This repo is no longer officially maintained as of Jan, 2023.
Feel free to use it, fork it and patch it for your own needs.
The Python example app

The Python example app teaches the very basics of how to work with Contentful:
- consume content from the Contentful Delivery and Preview APIs
- model content
- edit content through the Contentful web app
The app demonstrates how decoupling content from its presentation enables greater flexibility and facilitates shipping higher quality software more quickly.

You can see a hosted version of The Python example app
on Heroku.
Disclaimer
Please note: this repository is meant as a learning tool for Contentful in a development environment, and is not meant or supported for production use.
What is Contentful?
Contentful provides a content infrastructure for digital teams to power content in websites, apps, and devices. Unlike a CMS, Contentful was built to integrate with the modern software stack. It offers a central hub for structured content, powerful management and delivery APIs, and a customizable web app that enable developers and content creators to ship digital products faster.
Requirements
- Python 2.7+ or 3.3+ (if running tests locally 3.3+ is required)
- Git
- Contentful CLI (only for write access)
Without any changes, this app is connected to a Contentful space with read-only access. To experience the full end-to-end Contentful experience, you need to connect the app to a Contentful space with read and write access. This enables you to see how content editing in the Contentful web app works and how content changes propagate to this app.
Common setup
Clone the repo and install the dependencies.
bash
git clone https://github.com/contentful/the-example-app.py.git
bash
pip install -r requirements.txt
Steps for read-only access
To start the server, run the following
bash
make run
Open http://localhost:3000 and take a look around.
Steps for read and write access (recommended)
Step 1: Install the Contentful CLI
Step 2: Login to Contentful through the CLI. It will help you to create a free account if you don't have one already.
contentful login
Step 3: Create a new space
contentful space create --name 'My space for the example app'
Step 4: Seed the new space with the content model. Replace the SPACE_ID
with the id returned from the create command executed in step 3
contentful space seed -s '<SPACE_ID>' -t the-example-app
Step 5: Head to the Contentful web app's API section and grab SPACE_ID
, DELIVERY_ACCESS_TOKEN
, PREVIEW_ACCESS_TOKEN
.
Step 6: Open .env
and inject your credentials so it looks like this
APP_ENV=development
CONTENTFUL_SPACE_ID=<SPACE_ID>
CONTENTFUL_DELIVERY_TOKEN=<DELIVERY_ACCESS_TOKEN>
CONTENTFUL_PREVIEW_TOKEN=<PREVIEW_ACCESS_TOKEN>
SESSION_SECRET=someSecretTokenHere
PORT=3000
Step 7: To start the server, run the following
bash
make run
Final Step:
Open http://localhost:3000?editorial_features=enabled and take a look around. This URL flag adds an “Edit” button in the app on every editable piece of content which will take you back to Contentful web app where you can make changes. It also adds “Draft” and “Pending Changes” status indicators to all content if relevant.
Deploy to Heroku
You can also deploy this app to Heroku:

Issues
opened on 2022-01-21 18:59:41 by dependabot[bot]
Bumps ipython from 6.2.1 to 7.16.3.
Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/contentful/the-example-app.py/network/alerts).
opened on 2021-06-18 18:32:50 by dependabot[bot]
Bumps contentful from 1.7.0 to 1.12.4.
Changelog
Sourced from contentful's changelog.
v1.12.4
Fixed
- Unresolved single references fields will no longer return the invalid Link and return None instead, matching behaviour of multiple references fields, where unresolvable links are ignored. #58
v1.12.3
Fixed
- Fixed an
IndexError
when multiple invalid nodes were found in a RichText field. #52
v1.12.2
Fixed
- Assets with empty or missing files no longer error when trying to get it serialized to string. #48
v1.12.1
Fixed
- Fixed project description for PyPI.
v1.12.0
Added
- Added
timeout_s
to Client. #46
v1.11.4
Fixed
- Entries that had already been processed when coercing RichText fields are now properly omitted. #41
v1.11.3
Fixed
- Errors are now being correctly propagated through the chain of relationships.
- Links in
RichText
fields, that are published but unreachable, due to not having enough include depth on the request, are now returned as Link
objects.
Changed
- Updated
requests
version due to a vulnerability found in versions 2.19
and below.
- Included resources for embedded entries and assets in Rich Text fields are now properly serialized to
data.target
instead of the top level data
.
v1.11.2
Changed
- Removed Pandoc depedency from installation
v1.11.1
As RichText
moves from alpha
to beta
, we're treating this as a feature release.
Changed
- Renamed
StructuredText
to RichText
.
v1.10.2
Added
- Added support for
StructuredText
inline Entry include resolution.
v1.10.1
Added
... (truncated)
Commits
57697d6
Bump to version 1.12.4
261f675
fix(entry): return None if the nested link is unresolvable (#59)
83c4d52
Bump to version 1.12.3
99a574e
Fixed an 'IndexError: list assignment index out of range' error in RichTextFi...
155ef03
Bump to version 1.12.2
ae3cb94
Fix asset serialization on empty files (#49)
971173a
Bump to version 1.12.1
c9b6df6
Fix description for PyPI package
1011d9b
Bump to version 1.12.0
33d7d59
Add timeouts to requests calls (#46)
- Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/contentful/the-example-app.py/network/alerts).
opened on 2019-08-22 10:14:00 by dependabot[bot]
Bumps requests from 2.18.4 to 2.20.0.
Changelog
*Sourced from [requests's changelog](https://github.com/psf/requests/blob/master/HISTORY.md).*
> 2.20.0 (2018-10-18)
> -------------------
>
> **Bugfixes**
>
> - Content-Type header parsing is now case-insensitive (e.g.
> charset=utf8 v Charset=utf8).
> - Fixed exception leak where certain redirect urls would raise
> uncaught urllib3 exceptions.
> - Requests removes Authorization header from requests redirected
> from https to http on the same hostname. (CVE-2018-18074)
> - `should_bypass_proxies` now handles URIs without hostnames (e.g.
> files).
>
> **Dependencies**
>
> - Requests now supports urllib3 v1.24.
>
> **Deprecations**
>
> - Requests has officially stopped support for Python 2.6.
>
> 2.19.1 (2018-06-14)
> -------------------
>
> **Bugfixes**
>
> - Fixed issue where status\_codes.py's `init` function failed trying
> to append to a `__doc__` value of `None`.
>
> 2.19.0 (2018-06-12)
> -------------------
>
> **Improvements**
>
> - Warn user about possible slowdown when using cryptography version
> < 1.3.4
> - Check for invalid host in proxy URL, before forwarding request to
> adapter.
> - Fragments are now properly maintained across redirects. (RFC7231
> 7.1.2)
> - Removed use of cgi module to expedite library load time.
> - Added support for SHA-256 and SHA-512 digest auth algorithms.
> - Minor performance improvement to `Request.content`.
> - Migrate to using collections.abc for 3.7 compatibility.
>
> **Bugfixes**
>
> - Parsing empty `Link` headers with `parse_header_links()` no longer
> return one bogus entry.
> ... (truncated)
Commits
- [`bd84045`](https://github.com/psf/requests/commit/bd840450c0d1e9db3bf62382c15d96378cc3a056) v2.20.0
- [`7fd9267`](https://github.com/psf/requests/commit/7fd9267b3bab1d45f5e4ac0953629c5531ecbc55) remove final remnants from 2.6
- [`6ae8a21`](https://github.com/psf/requests/commit/6ae8a2189235b62d7c5b2a6b95528750f046097c) Add myself to AUTHORS
- [`89ab030`](https://github.com/psf/requests/commit/89ab030cdb83a728a30e172bc65d27ba214d2eda) Use comprehensions whenever possible
- [`2c6a842`](https://github.com/psf/requests/commit/2c6a8426aebd853966747f2c851f551c583cb21a) Merge pull request [#4827](https://github-redirect.dependabot.com/requests/requests/issues/4827) from webmaven/patch-1
- [`30be889`](https://github.com/psf/requests/commit/30be889651e7034eaa56edaf5794d68ffbfde9ed) CVE URLs update: www sub-subdomain no longer valid
- [`a6cd380`](https://github.com/psf/requests/commit/a6cd380c640087218695bc7c62311a4843777e43) Merge pull request [#4765](https://github-redirect.dependabot.com/requests/requests/issues/4765) from requests/encapsulate_urllib3_exc
- [`bbdbcc8`](https://github.com/psf/requests/commit/bbdbcc8f0553f112ff68b0950b4128bd8af000fc) wrap url parsing exceptions from urllib3's PoolManager
- [`ff0c325`](https://github.com/psf/requests/commit/ff0c325014f817095de35013d385e137b111d6e8) Merge pull request [#4805](https://github-redirect.dependabot.com/requests/requests/issues/4805) from jdufresne/https
- [`b0ad249`](https://github.com/psf/requests/commit/b0ad2499c8641d29affc90f565e6628d333d2a96) Prefer https:// for URLs throughout project
- Additional commits viewable in [compare view](https://github.com/requests/requests/compare/v2.18.4...v2.20.0)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/contentful/the-example-app.py/network/alerts).
opened on 2019-08-22 10:13:59 by dependabot[bot]
Bumps urllib3 from 1.22 to 1.24.2.
Changelog
*Sourced from [urllib3's changelog](https://github.com/urllib3/urllib3/blob/master/CHANGES.rst).*
> 1.24.2 (2019-04-17)
> -------------------
>
> * Don't load system certificates by default when any other ``ca_certs``, ``ca_certs_dir`` or
> ``ssl_context`` parameters are specified.
>
> * Remove Authorization header regardless of case when redirecting to cross-site. (Issue [#1510](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1510))
>
> * Add support for IPv6 addresses in subjectAltName section of certificates. (Issue [#1269](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1269))
>
>
> 1.24.1 (2018-11-02)
> -------------------
>
> * Remove quadratic behavior within ``GzipDecoder.decompress()`` (Issue [#1467](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1467))
>
> * Restored functionality of ``ciphers`` parameter for ``create_urllib3_context()``. (Issue [#1462](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1462))
>
>
> 1.24 (2018-10-16)
> -----------------
>
> * Allow key_server_hostname to be specified when initializing a PoolManager to allow custom SNI to be overridden. (Pull [#1449](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1449))
>
> * Test against Python 3.7 on AppVeyor. (Pull [#1453](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1453))
>
> * Early-out ipv6 checks when running on App Engine. (Pull [#1450](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1450))
>
> * Change ambiguous description of backoff_factor (Pull [#1436](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1436))
>
> * Add ability to handle multiple Content-Encodings (Issue [#1441](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1441) and Pull [#1442](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1442))
>
> * Skip DNS names that can't be idna-decoded when using pyOpenSSL (Issue [#1405](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1405)).
>
> * Add a server_hostname parameter to HTTPSConnection which allows for
> overriding the SNI hostname sent in the handshake. (Pull [#1397](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1397))
>
> * Drop support for EOL Python 2.6 (Pull [#1429](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1429) and Pull [#1430](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1430))
>
> * Fixed bug where responses with header Content-Type: message/* erroneously
> raised HeaderParsingError, resulting in a warning being logged. (Pull [#1439](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1439))
>
> * Move urllib3 to src/urllib3 (Pull [#1409](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1409))
>
>
> 1.23 (2018-06-04)
> -----------------
>
> * Allow providing a list of headers to strip from requests when redirecting
> to a different host. Defaults to the ``Authorization`` header. Different
> ... (truncated)
Commits
- [`1efadf4`](https://github.com/urllib3/urllib3/commit/1efadf43dc63317cd9eaa3e0fdb9e05ab07254b1) Release 1.24.2 ([#1564](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1564))
- [`a6ec68a`](https://github.com/urllib3/urllib3/commit/a6ec68a5c5c5743c59fe5c62c635c929586c429b) Merging new release version: 1.24.1
- [`0cedb3b`](https://github.com/urllib3/urllib3/commit/0cedb3b0f1e5d79c89c6db767c534b064b794cf2) Restore context.set_ciphers() to create_urllib3_context() ([#1463](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1463))
- [`0aeba3b`](https://github.com/urllib3/urllib3/commit/0aeba3be0224a930f6ffef254ed12b41303a86d7) Use bytearray to accumulate bytes from gzip ([#1468](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1468))
- [`f8d1c78`](https://github.com/urllib3/urllib3/commit/f8d1c787d9b02a70d66ddbde9c99061d9073d54a) Uninstall oclint to ensure gcc can be brew upgraded ([#1464](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1464))
- [`cd7cfa6`](https://github.com/urllib3/urllib3/commit/cd7cfa613b2678e700597d098ce9bbdc934863e6) Resolve pytest pluggy version conflict ([#1457](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1457))
- [`b548abc`](https://github.com/urllib3/urllib3/commit/b548abc9812a628d3290d0cab83e44f3c31ac6fe) Update changelog for 1.24 release
- [`ef0c745`](https://github.com/urllib3/urllib3/commit/ef0c74542abe69421a86c4d3c6a86fe43cb809a4) Merging new release version: 1.24
- [`a0964d9`](https://github.com/urllib3/urllib3/commit/a0964d9947c07d2b8495726ac23ad251b5d236af) Add missing key_server_hostname variable ([#1449](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1449))
- [`34d8298`](https://github.com/urllib3/urllib3/commit/34d8298ecf93c84f9916457d89701d6d5c807780) Test against Python 3.7 on AppVeyor ([#1453](https://github-redirect.dependabot.com/urllib3/urllib3/issues/1453))
- Additional commits viewable in [compare view](https://github.com/urllib3/urllib3/compare/1.22...1.24.2)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/contentful/the-example-app.py/network/alerts).
opened on 2019-08-22 10:13:58 by dependabot[bot]
Bumps flask from 0.12.2 to 1.0.
Release notes
*Sourced from [flask's releases](https://github.com/pallets/flask/releases).*
> ## 1.0
> The Pallets team is pleased to release Flask 1.0. [Read the announcement on our blog.](https://www.palletsprojects.com/blog/flask-1-0-released/
>
> There are over a year's worth of changes in this release. Many features have been improved or changed. [Read the changelog](http://flask.pocoo.org/docs/1.0/changelog/) to understand how your project's code will be affected.
>
>
> JSON Security Fix
> ------------------
>
> Flask previously decoded incoming JSON bytes using the content type of the request. Although JSON should only be encoded as UTF-8, Flask was more lenient. However, Python includes non-text related encodings that could result in unexpected memory use by a request.
>
> Flask will now detect the encoding of incoming JSON data as one of the supported UTF encodings, and will not allow arbitrary encodings from the request.
>
>
> Install or Upgrade
> -------------------
>
> Install from [PyPI](https://pypi.org/project/Flask/) with pip:
>
> pip install -U Flask
>
> ## 0.12.4
> This is a repackage of [0.12.3](https://github.com/pallets/flask/releases/0.12.3) to fix an issue with how the package was built.
>
>
> Upgrade
> --------
>
> Upgrade from [PyPI](https://pypi.org/project/Flask/0.12.4/) with pip. Use a version identifier if you want to stay at 0.12:
>
> pip install -U 'Flask~=0.12.4'
>
> ## 0.12.3
> This release includes an important security fix for JSON and a minor backport for CLI support in PyCharm. It is provided for projects that cannot update to Flask 1.0 immediately. See the [1.0 announcement](https://github.com/pallets/flask/blob/flask-1-0-released) and update to it instead if possible.
>
>
> JSON Security Fix
> ------------------
>
> Flask previously decoded incoming JSON bytes using the content type of the request. Although JSON should only be encoded as UTF-8, Flask was more lenient. However, Python includes non-text related encodings that could result in unexpected memory use by a request.
>
> Flask will now detect the encoding of incoming JSON data as one of the supported UTF encodings, and will not allow arbitrary encodings from the request.
>
>
> Upgrade
> --------
>
> Upgrade from [PyPI](https://pypi.org/project/Flask/) with pip. Use a version identifier if you want to stay at 0.12:
>
> pip install -U 'Flask~=0.12.3'
> ... (truncated)
Changelog
*Sourced from [flask's changelog](https://github.com/pallets/flask/blob/master/CHANGES.rst).*
> Version 1.0
> -----------
>
> Released 2018-04-26
>
> - Python 2.6 and 3.3 are no longer supported.
> - Bump minimum dependency versions to the latest stable versions:
> Werkzeug >= 0.14, Jinja >= 2.10, itsdangerous >= 0.24, Click >= 5.1.
> :issue:`2586`
> - Skip :meth:`app.run ` when a Flask application is run
> from the command line. This avoids some behavior that was confusing
> to debug.
> - Change the default for :data:`JSONIFY_PRETTYPRINT_REGULAR` to
> ``False``. :func:`~json.jsonify` returns a compact format by
> default, and an indented format in debug mode. :pr:`2193`
> - :meth:`Flask.__init__ ` accepts the ``host_matching``
> argument and sets it on :attr:`~Flask.url_map`. :issue:`1559`
> - :meth:`Flask.__init__ ` accepts the ``static_host`` argument
> and passes it as the ``host`` argument when defining the static
> route. :issue:`1559`
> - :func:`send_file` supports Unicode in ``attachment_filename``.
> :pr:`2223`
> - Pass ``_scheme`` argument from :func:`url_for` to
> :meth:`~Flask.handle_url_build_error`. :pr:`2017`
> - :meth:`~Flask.add_url_rule` accepts the
> ``provide_automatic_options`` argument to disable adding the
> ``OPTIONS`` method. :pr:`1489`
> - :class:`~views.MethodView` subclasses inherit method handlers from
> base classes. :pr:`1936`
> - Errors caused while opening the session at the beginning of the
> request are handled by the app's error handlers. :pr:`2254`
> - Blueprints gained :attr:`~Blueprint.json_encoder` and
> :attr:`~Blueprint.json_decoder` attributes to override the app's
> encoder and decoder. :pr:`1898`
> - :meth:`Flask.make_response` raises ``TypeError`` instead of
> ``ValueError`` for bad response types. The error messages have been
> improved to describe why the type is invalid. :pr:`2256`
> - Add ``routes`` CLI command to output routes registered on the
> application. :pr:`2259`
> - Show warning when session cookie domain is a bare hostname or an IP
> address, as these may not behave properly in some browsers, such as
> Chrome. :pr:`2282`
> - Allow IP address as exact session cookie domain. :pr:`2282`
> - ``SESSION_COOKIE_DOMAIN`` is set if it is detected through
> ``SERVER_NAME``. :pr:`2282`
> - Auto-detect zero-argument app factory called ``create_app`` or
> ``make_app`` from ``FLASK_APP``. :pr:`2297`
> - Factory functions are not required to take a ``script_info``
> parameter to work with the ``flask`` command. If they take a single
> parameter or a parameter named ``script_info``, the
> ... (truncated)
Commits
- [`291f3c3`](https://github.com/pallets/flask/commit/291f3c338c4d302dbde01ab9153a7817e5a780f5) Bump version number to 1.0
- [`36e68a4`](https://github.com/pallets/flask/commit/36e68a439a073e927b1801704fc7921be58262e1) release 1.0
- [`216151c`](https://github.com/pallets/flask/commit/216151c8a3c02e805fe5d1824708253f7e01e77f) Merge branch '0.12-maintenance'
- [`23047a7`](https://github.com/pallets/flask/commit/23047a71fd7da13be7b545f30807f38f4d9ecb25) Bump version number to 0.12.4.dev
- [`1a9e58e`](https://github.com/pallets/flask/commit/1a9e58e8c97c47c969736d46410f724f4e834f54) Bump version number to 0.12.3
- [`63deee0`](https://github.com/pallets/flask/commit/63deee0a8b0963f1657e2d327773d65632a387d3) release 0.12.3
- [`062745b`](https://github.com/pallets/flask/commit/062745b23f7abaafb144e3d94b6fbdf8ccc456b9) Merge pull request [#2720](https://github-redirect.dependabot.com/pallets/flask/issues/2720) from pallets/setup-link
- [`5c8110d`](https://github.com/pallets/flask/commit/5c8110de25f08bf20e9fda6611403dc5c59ec849) ensure order of project urls
- [`10a77a5`](https://github.com/pallets/flask/commit/10a77a54309876a6aba2e3303d291498c0a9318c) Add project_urls so that PyPI will show GitHub stats.
- [`22992a0`](https://github.com/pallets/flask/commit/22992a0d533f7f68e9fa1845c86dae230d8ff9ba) add donate link
- Additional commits viewable in [compare view](https://github.com/pallets/flask/compare/0.12.2...1.0)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot ignore this [patch|minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/contentful/the-example-app.py/network/alerts).
opened on 2019-02-12 05:36:58 by cheluskis
Hi and thanks for your kindness, one question:
Can use it in a flask application dispatching all my routes always calling the same contentful.instance()?
To fetch entries in multiple flask routes at same time.
I mean without running in any race conditions or locks?,
My use case will be only consuming content
thank you very much for you assistance.
Kind Regards