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={})
from flaskshop import app if __name__ == '__main__': app.run(ssl_context='adhoc')
from flaskshop import app if __name__ == '__main__': app.run(debug=True) app.run(host='0.0.0.0')