想用Flask 开小网站,不知道大家遇过什么坑没有?
想用Flask 开小网站,不知道大家遇过什么坑没有?
|
O21Jan 20, 2015 via iPhone
1
有坑也是自己挖的
|
|
iloahzJan 20, 2015 via iPhone
2
blueprint不如django的好用,个人觉得
|
|
yrdrJan 20, 2015
3
Flask上手还是蛮简单的,可能是刚入python,暂时不清楚坑在哪里
|
|
washinriverJan 20, 2015
4
项目一直在用,坑还好
|
|
kaviJan 20, 2015
5
最近也是刚上手,关注一下。
|
|
tonyleenJan 20, 2015
6
之前用过,很简单的项目,到没遇到什么坑.
|
|
snopyJan 20, 2015
7
目前在用Flask+sqlalchemy做开发...
|
|
skywalkerJan 20, 2015
8
挺好的,记得哪个Django的核心开发人员说过,Django出现的太早了,Flask才是Django应该的样子。
|
|
sujin190Jan 20, 2015
10
日志,有点乱
|
|
icedxJan 20, 2015 via Android
11
依赖数据库太强 不能在Loop 内使用Loop 外的逻辑?
|
|
happywowwowJan 20, 2015
12
http://stackoverflow.com/questions/28017782/flask-app-turn-off-without-any-information
昨天遇到的一个问题 不清楚是为什么了 后来 uninstall install 了flask-sqlalchemy 最后发现好像是view里使用sqlalchemy不正确,有外键只add了而没commit,但好像不是这个原因 问题修改了几次 |
|
yakczhJan 20, 2015
13
用sqlalchemy查出来的数据,不能直接输出json
|
|
14
@yakczh
可以在model里加个to_json方法转一下~ |
|
cloverstdJan 20, 2015
15
难道就我一个人用 peewee 么
|
|
yakczhJan 20, 2015
16
@crazyxin1988 不同请求查询需要的字段都不一样
|
|
crazyxin1988Jan 20, 2015
17
|
|
yakczhJan 20, 2015
18
要加字段
|
|
cickuJan 20, 2015
19
flask 自己写过博客和网站,小应用挺好玩的,而且扩展性强所以我觉得没什么大坑。
|
|
vob636Jan 20, 2015
20
我觉得不应该只有我一个人用Marshmallow搭配SQLAlchemy输出结果的吧?
|
|
21
@idblife 本来是自己随便看过的,不过去搜了下还是找到了,当然你要我严格的引用我是没这本事,
仅供参考: https://news.ycombinator.com/item?id=7105799 This last past year, at DjangoCon US • Chicago, I had the pleasure of sitting at the same table as Jacob Kaplan-Moss for the Speakers dinner prior to the conference. Very cool experience. My first. I brought up Flask and asked him what he thought of it. I had recently used it for a project for the first time and likely only did so because I was SUPPOSE TO BE FOCUSING on Django and preparing a talk about it. So naturally, I procrasinated and did everything but. It's been on my radar for awhile. I was attracted to it by it's documentation. Turns out, I really enjoyed it. It felt familiar because I've used Django for so long. I brought this up at the dinner table. Jacob said something that took me by surprise. I can't quote him exactly--the wine and drinks were too good that evening, but it was something to the effect of "Flask is what Django should have been". Another fellow from our table chimed in and added "If only Django had existed before we created Django!" What he ment was, without Django, Flask wouldn't of had such a clear and smooth start. Django taught us a lot. What I took from this was, both have their place and we have a lot to be thankful for, especially coming from the Django community. In regards to longevity, I think community is a major factor but these two technolgoies are both under Python, and I think the Python community at-large is what matters here. Hearing what Jacob had to say on Flask was sobering. There is no end-all-be-all, and both of these technolgoies have more in common than not. |
|
billleeJan 20, 2015
22
blueprint 注册到 '/' 的时候,静态资源注册不到 "/static" 上
|
|
x3byg9oyv27WlxJan 20, 2015
23
确实木有什么坑啊,用的很爽
|
|
ityaoJan 20, 2015
24
从flask转去sails的无比爽
|
|
lmeetrJul 29, 2016
25
坑太多了。最大的坑就是没有事务管理,非常的麻烦。
|