We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b26de25 commit eb37789Copy full SHA for eb37789
python-flask-flash/main.py
@@ -0,0 +1,16 @@
1
+from flask import Flask, flash, render_template
2
+
3
+app = Flask(__name__)
4
+app.secret_key = "secret key"
5
6
+@app.route('/')
7
+def app_session():
8
+ #flash('This is a flash message')
9
+ #flash('This is a flash error message', 'error')
10
+ #flash('This is a flash success message', 'success')
11
12
+ return render_template('template.html')
13
14
15
+if __name__ == "__main__":
16
+ app.run()
python-flask-flash/readme.rst
@@ -0,0 +1 @@
+You can go through the tutorial https://www.roytuts.com/flash-message-management-in-python-flask
0 commit comments