> @app.route("/") > def hello(): > return "Hello World!"
That's not what I want to do. I like how views are handled, but I wanted a easier way to render data from multiple return points in a same function without calling another thing multiple times... > Now I have to overcome this feeling with ORMs ORMs are great. I've already spent too many years writing SQL by hand and I regret the time I lost. Regards Bernardo On Dec 14, 7:57 pm, Matej Cepl <mc...@redhat.com> wrote: > On 13.12.2011 15:14, Javier Guerra Giraldez wrote: > > > for me, is opposed to the "explicit is better than implicit" in the > > Zen of Python. not a bad thing on itself, but something to be careful > > about. (and, personally, it's a big part of why i like Django so > > much better than RoR) > > I am a complete newbie in the world of webapps, but exactly this was the > reason why I left Flask. Nothing against them, but > > @app.route("/") > def hello(): > return "Hello World!" > > looks to me like a wrong to do things and yes “explicit is better than > implicit” (or “No magic allowed!”) was something I was thinking about. > > What I liked about the first look at Django was that it looks just like > a Python app not playing any tricks on me. > > Now I have to overcome this feeling with ORMs (be it the Django one or > SQLAlchemy) ... but there is probably not a better way how to do this. > > Just my €0.02 > > Matěj -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.