본문 바로가기

Flask5

[Flask] Using Markdown on Flask In this posting, I'll show you how to use markdown on Flask. Installation $ pip install flask flask-markdown flask-simplemde Install Flask and Flask-Markdown, Flask-SimpleMDE. Create an Application 2020/10/11 - [Python] - [Python] Getting Started with Flask app.py from flask import Flask, render_template app = Flask(__name__) @app.route("/") def index(): return render_template("index.html") if _.. 2021. 3. 1.
[Flask] Send Email on Flask using Flask-Mail In this posting, we will figure out how to send an email on Flask. Installation First of all, we need flask and flask-mail. $ pip install flask flask-mail Create Flask Application Now, it's Flask time. You can refer to the basics of Flask in the below links. 2020/10/11 - [Python] - [Python] Getting Started with Flask 2020/10/23 - [Python] - [Python] Templates Static Files in Flask app.py from fl.. 2021. 2. 28.
[PyCharm] Run Flask Application on PyCharm In this posting, I explain how to run the Flask application on PyCharm. Installation On Mac I used the HomeBrew for installation. $ brew insstall --cask pycharm-ce On Windows I used the Chocolatey for installation. $ choco install -y pycharm-community Flask Application Let's make a very simple application for testing. from flask import Flask app = Flask(__name__) @app.route('/') def hello(): ret.. 2021. 1. 26.
[Python] Templates Static Files in Flask Templates Overview Templates are files that contain static data as well as placeholders for dynamic data. A template is rendered with specific data to produce a final document. Flask uses the Jinja template library to render templates. In the application, we will use templates to render span style="color: #0593d3;">HTML which will display in the user's browser. In Flask, Jinja is configured to a.. 2020. 10. 23.
[Python] Getting Started with Flask In this posting, I'll show you to create a simple web server with Flask. I usually use Flask when I develop a side project. You can make it that easily and quickly. Then, Let's start it. Installation $ pip install flask All you need is Flask. A Minimal Application Create app.py file. from flask import Flask app = Flask("Hello Flask") @app.route('/') def home(): return 'Hello, World!' Give the na.. 2020. 10. 11.