6 changed files with 39 additions and 12 deletions
@ -1,12 +0,0 @@ |
|||||||
from flask import Flask |
|
||||||
|
|
||||||
app = Flask(__name__) |
|
||||||
|
|
||||||
|
|
||||||
@app.route('/') |
|
||||||
def hello_world(): # put application's code here |
|
||||||
return 'Hello World!' |
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__': |
|
||||||
app.run() |
|
||||||
@ -0,0 +1,19 @@ |
|||||||
|
from flask import Flask |
||||||
|
from config import config |
||||||
|
from flask_sqlalchemy import SQLAlchemy |
||||||
|
|
||||||
|
app = Flask(config['app']) |
||||||
|
db = SQLAlchemy(app) |
||||||
|
|
||||||
|
|
||||||
|
@app.route('/kuajbang/msg/<u>&<p>', staticmethod=['GET', 'POST']) |
||||||
|
def hello_world(): # put application's code here |
||||||
|
return 'Hello World!' |
||||||
|
|
||||||
|
|
||||||
|
def msg(): |
||||||
|
db.create_all() |
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__': |
||||||
|
app.run() |
||||||
@ -0,0 +1,6 @@ |
|||||||
|
""" |
||||||
|
@Project :KuajBang |
||||||
|
@File :view1.py |
||||||
|
@Author :AiNiSuBing |
||||||
|
@Date :2022/5/6 18:50 |
||||||
|
""" |
||||||
Loading…
Reference in new issue