Skip to content

Commit eb37789

Browse files
authored
Add files via upload
1 parent b26de25 commit eb37789

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

python-flask-flash/main.py

+16
Original file line numberDiff line numberDiff line change
@@ -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

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
You can go through the tutorial https://www.roytuts.com/flash-message-management-in-python-flask

0 commit comments

Comments
 (0)