deb17 / flask-modals Goto Github PK
View Code? Open in Web Editor NEWModals for flask
License: MIT License
Modals for flask
License: MIT License
Trying Flask-Modals today (through the BS5 example), I got an error indicating missing Markup. So, I fixed it removing any version mention in requirements.txt to get all last ones, and changing modal.py as follow:
# from jinja2.utils import markupsafe
from markupsafe import Markup
# return markupsafe.Markup(render_template('modals/modalMessages.html'))
return Markup(render_template('modals/modalMessages.html'))
However, nice. Bravo!
from flask_modals.modal import (from flask import (Blueprint, render_template, get_flashed_messages,
ImportError: cannot import name 'app_ctx_stack' from 'flask' (...Python\Python311\Lib\site-packages\flask_init.py)
Flask==2.1.1
Jinja2==3.1.1
In flask_modals/modal.py replace
import Markup from jinja2
with
from jinja2.utils import markupsafe
markupsafe.Markup()
https://pypi.org/project/flask-modals-markupsafe/
Author and licence are unchanged.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.