上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页
摘要: from flask import Flask,render_template app = Flask(__name__) app.config.update( DEBUG = True, ) @app.route('/') def index(): context = { 'user':['老男孩是垃圾1','老男孩是垃圾2','老男孩是垃圾3']... 阅读全文
posted @ 2018-09-19 22:50 python成长中 阅读(855) 评论(0) 推荐(0)
摘要: from flask import Flask,render_template app = Flask(__name__) app.debug = True @app.route('/') def hello_world(): context = { 'username':'laonanhai' } return render_template(... 阅读全文
posted @ 2018-09-19 20:56 python成长中 阅读(1367) 评论(0) 推荐(0)
摘要: 如何自定义时间过滤器 页面展示 datatime复习 阅读全文
posted @ 2018-09-19 19:11 python成长中 阅读(218) 评论(0) 推荐(0)
摘要: 1、基本使用 2、default过滤器的详解 3、常用的模板标签 阅读全文
posted @ 2018-09-19 11:42 python成长中 阅读(607) 评论(0) 推荐(0)
摘要: from flask import Flask,render_template app = Flask(__name__) @app.route('/') def index(): return render_template("index1.html") @app.route('/login/') def login(): return 'login' #现在有... 阅读全文
posted @ 2018-09-18 22:04 python成长中 阅读(521) 评论(0) 推荐(0)
摘要: 前端模块渲染 阅读全文
posted @ 2018-09-18 21:34 python成长中 阅读(208) 评论(0) 推荐(0)
摘要: from flask import Flask,render_template app = Flask(__name__)#template_folder='templates',默认就是templates,也可以指定 #比如来需求要求把模板文件放在c盘中 # app = Flask(__name__,template_folder='c:/templates') 就可以这样指定 app... 阅读全文
posted @ 2018-09-18 14:55 python成长中 阅读(167) 评论(0) 推荐(0)
摘要: python中反射 getattr的详细使用: 阅读全文
posted @ 2018-09-18 11:51 python成长中 阅读(8545) 评论(0) 推荐(0)
摘要: from flask import Flask,request,redirect,url_for app = Flask(__name__) @app.route('/') def hello_world(): return 'hello world' @app.route('/login/') def login(): return 'login' @app.r... 阅读全文
posted @ 2018-09-18 10:37 python成长中 阅读(6052) 评论(0) 推荐(0)
摘要: 在局域网中让其它电脑访问我的网站 阅读全文
posted @ 2018-09-17 21:23 python成长中 阅读(194) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 24 下一页