python学习

This commit is contained in:
2019-07-22 17:41:42 +08:00
parent 40dac844cc
commit b5cd21d1ae
4 changed files with 185 additions and 117 deletions

View File

@@ -1,12 +1,15 @@
# -*- coding: utf-8 -*-
from flask import Blueprint
from common.libs.Helper import ops_render
from common.models.User import User
route_account = Blueprint( 'account_page',__name__ )
@route_account.route( "/index" )
def index():
return ops_render( "account/index.html" )
resp_data={}
list = User.query.order_by(User.uid.desc()).all()
resp_data['list']=list
return ops_render( "account/index.html" ,resp_data)
@route_account.route( "/info" )
def info():