6 ms·
Try the Flask web framework in your Browser
- deleted 15y ago[deleted]
- dangrossman 15y ago> RuntimeError: Second simultaneous read on fileno 13 detected. Unless you really know what you're doing, make sure that only one greenthread can read any particular socket. Consider using a pools.Pool. If you do know what you're doing and want to disable this error, call eventlet.debug.hub_multiple_reader_prevention(False) I guess it's getting pounded. I got to a Twitter auth screen once and backed out. Too many sites ask for lifetime access to Twitter/Facebook/etc. and I don't trust what they'll do with it years down the line.
- ziegeer 15y agoIt won't let me use Firefox 8. It says I need a more modern Firefox. Hmm...
- sigzero 15y agoFirefox 8 isn't official so it probably sends a funky header back that identifies it as something else. Or their detection code is wrong.
- sp332 15y agoAccording to WhatsMyUserAgent.com, Firefox 9.0a2 (alpha channel) looks like this: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0a2) Gecko/20110930 Firefox/9.0a2 Doesn't look very weird.
- the_mitsuhiko 15y agoI will check this, this is just for testing anyways.
- deleted 15y ago[deleted]
- jxcole 15y agoI don't have a twitter account and I'm not going to sign up just to try something out. I don't want to be mean, but the point of a "try it in your web browser" is that the barrier to entry is low. Twitter makes it high again.
- apg 15y agoI didn't sign up for this either (for same reason as you), and because I suspect some viral marketing at work. My guess is that it is a version of the Flask-OAuth extension sample app, found here: http://packages.python.org/Flask-OAuth/ http://packages.python.org/Flask-OAuth/ Flask is really great, BTW.
- swanson 15y agoIt's just for authentication because you generate your own ep.io apps (I think that's what it's doing at least). If you look at the requested permissions, you will see that it doesn't need to read or write any of your data.
- sirn 15y agoWhy not just generate a unique token for each user then?
- bandushrew 15y agoI was all ready to sign up as well, I do have a twitter account and I was still put off. My twitter account is, like my facebook account and my google+ account, private to those whom I know and trust. why would I give that information to some random website?
- deleted 15y ago[deleted]
- cgranade 15y agoPardon me for being dense with respect to such things, but does Flask work with Google App Engine, being a WSGI framework?
- joeyespo 15y agoYes it does. Take a look at this tutorial: http://f.souza.cc/2010/08/flying-with-flask-on-google-app-engine/ http://f.souza.cc/2010/08/flying-with-flask-on-google-app-en... And here's a skeleton project to get you going: http://github.com/blossom/flask-gae-skeleton http://github.com/blossom/flask-gae-skeleton
- cgranade 15y agoVery nice. Thanks for the resources!
- dmnd 15y agoIf you need something like Flask for GAE, you will probably find this[1] interesting. It convinced me to use webapp2 over Flask. Webapp2 is actually replacing Google's implementation with the upcoming Python 2.7 release[2]. [1]: http://stackoverflow.com/questions/6774371/flask-vs-webapp2-for-google-app-engine http://stackoverflow.com/questions/6774371/flask-vs-webapp2-... [2]: https://sites.google.com/site/gaepython27testing/ https://sites.google.com/site/gaepython27testing/
- swanson 15y agoThis is pretty slick - its got the same feel as jsFiddle. Working this into the Flask docs (which are already excellent) would be interesting. Or doing one of the guided tutorials like http://mongly.com/geo/index http://mongly.com/geo/index.
- joeyespo 15y agoMy reaction: Awesome!! I'm so glad others can now see the simplicity of Flas... Twitter? Big fan of Flask, so I do hope there will be other methods of authentication (or none at all until you want to save your work). EDIT Oh well, signed up anyway. The interface is very sleek and well designed. It demonstrates how simple and light weight it is very well. Great job. FEEDBACK Took me a minute to find the "list of files" dropdown. Perhaps combine that and the associated buttons at the top with the "current file" label at the top. A slider instead of a static separator would be helpful. Especially if you want to see more of your site when using a wide monitor. Also, I (again) really like the design. It's fun. And like that you can visit and share your site, even if it is temporary. Ep.io should absolutely invest in this. It's quite wonderful.
- the_mitsuhiko 15y ago> Big fan of Flask, so I do hope there will be other methods of authentication (or none at all until you want to save your work). Sorry for that. I thought it would be the easiest way for people to sign up but I guess I will add OpenID as well.
- wvenable 15y agoHow about an authentication that doesn't require a 3rd party service?
- antimora 15y agoGetting this error: listener = BaseHub.add(self, evtype, fileno, cb) File "/usr/lib/python2.7/dist-packages/eventlet/hubs/hub.py", line 126, in add evtype, fileno, evtype)) RuntimeError: Second simultaneous read on fileno 17 detected. Unless you really know what you're doing, make sure that only one greenthread can read any particular socket. Consider using a pools.Pool. If you do know what you're doing and want to disable this error, call eventlet.debug.hub_multiple_reader_prevention(False)
- plaes 15y agoFrom the author of the Flask: <mitsuhiko> If you get exceptions randomly then that's because my ep.io account gets limited. I have like 30 apps by now xD
- prodigal_erik 15y ago> Your browser does not support this application :-( Not only are they blaming me for their failure to support all browsers via progressive enhancement, they aren't even telling me what their application actually does and why I should want to jump through their hoops.
- Toddward 15y agoI've never played around with Flask before this and now I'm seriously considering migrating my project from Django to this. I like that it's more lightweight and flexible than Django, but there appear to be some tradeoffs as well. Has anyone successfully migrated a project from Django to Flask? Are you happy with your decision? What things do you like/dislike about it compared to Django?
- jroll 15y agoI've moved an in-progress project from django to flask, and am loving it. IMO, django has too much boilerplate and requires too much code to get things done. I seem to find myself digging through documentation more than writing code. With flask, I'm implementing complete features in hours rather than days. Django is awesome, don't get me wrong. Maybe I just need more experience with it.
- asreal 15y agoI've looked at flask briefly, but it strikes me that a bare-bones django project is every bit as lightweight as a bare-bones flask project(i.e. use what you need). That said, if a flask project grows beyond a trivial app, don't you necessarily need to rebuild(or seek out) much of the great functionality that django already provides?
- DasIch 15y agoYes, that's the idea. Flask itself provides core functionality and if you need database access, authentication, authorization, OAuth, OpenID or whatever else you might need you use an extension which provides that. The great thing about extensions is that Flask has the concept of approved extensions, these have been reviewed by Flask developers and have to follow certain guide lines[1]. Django gives you more features, Flask is more flexible. Both have their up- and downsides so it comes down to personal preference which you choose. [1]: http://flask.pocoo.org/docs/extensiondev/#approved-extensions http://flask.pocoo.org/docs/extensiondev/#approved-extension...
- tripzilch 15y ago
- zobzu 15y ago"This application will be able to: Read Tweets from your timeline. See who you follow. " You know what? Fuck that. If you don't want to handle auth, use something that you won't use to spy on me, like https://browserid.org/ https://browserid.org/ Otherwise, forget it.
- rjd 15y agoWhat the hell does twitter integration have to do with an exposé on a language framework... sorry but nope looks like some sort of scraping scam to me.... remove the twitter oauth and I'll revisit it.
- moe 15y agoA screenshot for those who don't want to give out their twitter: http://cl.ly/0j2m0Y1K3M0m3T2p0I3C/o http://cl.ly/0j2m0Y1K3M0m3T2p0I3C/o It's pretty nifty, on the left side you can edit your files (at the bottom is a dropdown to switch between them), the right side automatically reloads.
- xnxn 15y agoYou've accidentally left one occurrence of your username unredacted, in that welcome blurb :)
- eslachance 15y agoIt would be nice if there was a possibility of creating and using a database. As far as I know (and I don't know much, mind you), using the console is either necessary, or makes it much easier, to create, say, an sqlite3 db. Another feature request would be the ability to upload images or static resources but I get how space and security can be an issue in that case. Oh and one last tidbit, "guarnatee" is not a word (welcome.html) ;) Other than that, I really appreciate the simplicity of it all, the ability to download the package after you're done especially. Great job, mitsuhiko!