begin mg tut framework in be

This commit is contained in:
2024-07-31 23:56:27 -07:00
parent 9b79a3796b
commit becc234263
12 changed files with 60 additions and 5 deletions
+2
View File
@@ -0,0 +1,2 @@
FLASK_APP=microblog.py
+4
View File
@@ -0,0 +1,4 @@
pip:
pip install flask
pip install python-dotenv
+6
View File
@@ -0,0 +1,6 @@
from flask import Flask
app = Flask(__name__)
from app import routes
+7
View File
@@ -0,0 +1,7 @@
from app import app
@app.route('/')
@app.route('/index')
def index():
return "Hello, World!"
+2
View File
@@ -0,0 +1,2 @@
from app import app
Executable → Regular
+6 -2
View File
@@ -1,4 +1,8 @@
blinker==1.8.2
click==8.1.7
Flask==3.0.3
itsdangerous==2.2.0
Jinja2==3.1.4
MarkupSafe==2.1.5
python-dotenv==1.0.1
Werkzeug==3.0.3
mysql-connector-python
pyuwsgi
-2
View File
@@ -1,2 +0,0 @@
Flask==2.0.1
mysql-connector==2.2.9
+11
View File
@@ -0,0 +1,11 @@
<html>
<head>
<title></title>
</head>
<body>
<h1>About</h1>
</body>
</html>
+9
View File
@@ -0,0 +1,9 @@
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
+11
View File
@@ -0,0 +1,11 @@
<html>
<head>
<title></title>
</head>
<body>
<h1>Home</h1>
</body>
</html>