コード例 #1
0
def parse(data):
    ans = []
    i = 0
    while i < len(data):
        curr = []
        for j in range(7):
            if i >= len(data):
                break
            curr.append(data[i])
            i += 1
        ans.append(curr)
    return ans


if __name__ == '__main__':
    app.run(debug=True)


#
#
#
@SHOP.route('/home')
def home():
    """Display the homepage.

    Contains forms for registering and logging in.
    """
    return flask.render_template('shop/home.html',
                                 colleges=models.College.query.all(),
                                 affiliations=models.Affiliation.query.all(),
                                 form={})
コード例 #2
0
from flaskshop import app

if __name__ == '__main__':
    app.run(ssl_context='adhoc')
コード例 #3
0
ファイル: run.py プロジェクト: theshyT/vulnwebapp
from flaskshop import app

if __name__ == '__main__':
    app.run(debug=True)
    app.run(host='0.0.0.0')