Skip to content

Commit

Permalink
issue #306 FlaskMarkdown + variable non employés, mis en commentaires
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliettejns committed Mar 8, 2024
1 parent 645973a commit d23ab50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
from flask_mail import Mail
from flask_sqlalchemy import SQLAlchemy
from flask_wtf import CSRFProtect
from flaskext.markdown import Markdown
#from flaskext.markdown import Markdown
from flask_babel import Babel
from .ext_config import get_locale
from sqlalchemy import text
import warnings

basedir = os.path.abspath(os.path.dirname(__file__))

Expand Down Expand Up @@ -51,7 +49,7 @@ def create_app(config_name="dev"):
login_manager.init_app(app)
#csrf.init_app(app)
compress.init_app(app)
md = Markdown(app, safe_mode=True)
#md = Markdown(app, safe_mode=True)
babel.init_app(app, locale_selector=get_locale)

# Register Jinja template functions
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Flask-Login==0.6.3
Flask-Mail==0.9.1
email_validator<2.0.0
Flask-Compress==1.12
flask-markdown==0.3
python-slugify==6.1.2
authlib~=1.0.1
itsdangerous~=2.1.2
Expand Down

0 comments on commit d23ab50

Please sign in to comment.