Skip to content

update flask#5

Merged
johnmcollier merged 1 commit into
devfile-samples:mainfrom
jduimovich:update-flask
Apr 1, 2022
Merged

update flask#5
johnmcollier merged 1 commit into
devfile-samples:mainfrom
jduimovich:update-flask

Conversation

@jduimovich

Copy link
Copy Markdown
Contributor

A component used in Flask 1.1.2 has been deprecated.

This results in this error when you run the container
cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.10/site-packages/jinja2/__init__.py)

Upgrading the Flask version to 2.0 fixes the error

How to test

docker build -f docker/Dockerfile  -t test .
docker run -p 8081:8081 test

before the patch you get the error, after the patch it works.

fixes deprecated error on jinja2
@johnmcollier johnmcollier merged commit dcd255b into devfile-samples:main Apr 1, 2022
cuipinghuo referenced this pull request in rhtap-installer/devfile-sample-python-basic Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants