Live data from Hacker News

Ask HN: Choosing a Python framework for web development?

news.ycombinator.com

31–40 of 41 posts

Re: Ask HN: Choosing a Python framework for web development?

#31

If you're serious about learning web programming, here's a few thoughts before you pick up the Django book and start wading through it: Take a look at the HTTP protocol, and learn what it does before you start diving in to web frameworks. You'll understand what's going on inside the framework before you get started. After looking at HTTP, try some basic CGI programming. Just google: Python CGI Tutorial. CGI is a bit…

If you are inclined to start from basics, you might want to try this tutorial: http://pythonpaste.org/do-it-yourself-framework.html

Re: Ask HN: Choosing a Python framework for web development?

#32
post #3

Earlier quoted context omitted.

Alright, thank you. I guess exactly what I was looking for. Couple of other questions that just popped up while reading your (thoughtful)reply a)- How much is the learning curve--considering my skill-set? From what I can tell from their website, I guess decent amount of documentation is available so I hope I won't get stuck. b)-My only fear is the lack of JavaScript(Ajax) skills. For that reason alone, I was interest…

a.) You do need a solid block of time to devote to it, but if you have that, it's not bad. Start with the tutorial and work your way through it, and be sure to follow along . I had a decent grasp after about 2 days, and in 3 weeks I'd rewritten my whole project in Django, getting back to the functionality level I'd previously written in Pylons. This included delving into some of the more esoteric corners like templat…

Thank you very much every one and Nostrademons in particular. I really appreciate your insights. Very helpful. What web-host (cheap and reliable:-)you guys use to deploy python-based apps?

Re: Ask HN: Choosing a Python framework for web development?

#33
post #25
post #22

Earlier quoted context omitted.

When I started hacking in Python which was over a year ago, I started with Django. That was a mistake because Django has too much magic which leaves the newbie clueless - I switched to Pylons and it has always felt right. Additionally Pylons has allowed me the necessary space to grow my skills and the Pylons apps I build now are very customized. That was my experience - I think you should try out Django, Pylons and a…

Django contains almost no magic...they intentionally removed anything like this after I think 0.95? What is an example of this magic?

Surely, there is the possibility that I tried Django before the magic was removed...

Re: Ask HN: Choosing a Python framework for web development?

#35
post #26

Earlier quoted context omitted.

> 2.) "It's not scalable enough." The Washington Post runs on Django; I doubt you're going to get more pageviews than them. Just FYI, the Washington Post does not use Django for their main page. They only use it for small side projects. At reddit we tried to use Django, but had to switch to Pylons because, lo and behold, it wasn't scalable. Specifically, it has a problem caching templates under high loads.

Interesting...that's very helpful to know. Did you try memcached? I've heard Pownce has been doing just fine with Django + memcached, and they get a decent amount of traffic.

That will be interesting to see. I really don't think Pownce gets anything close to reddit's traffic

Re: Ask HN: Choosing a Python framework for web development?

#38
post #26

Start with Django unless you have a very good reason to use one of the other ones. Very good reasons include 1.) Previous skills with Mako, SQLAlchemy, Paste, or any of the other libraries that Pylons or Turbogears is based upon. 2.) Previous code in one of the above libraries 3.) Functionality needs that Django cannot satisfy in at least a couple of the following areas: authentication, user models, multiple database…

> 2.) "It's not scalable enough." The Washington Post runs on Django; I doubt you're going to get more pageviews than them. Just FYI, the Washington Post does not use Django for their main page. They only use it for small side projects. At reddit we tried to use Django, but had to switch to Pylons because, lo and behold, it wasn't scalable. Specifically, it has a problem caching templates under high loads.

I think I've read somewhere that Disqus uses Django.

Re: Ask HN: Choosing a Python framework for web development?

#40
post #32

Earlier quoted context omitted.

a.) You do need a solid block of time to devote to it, but if you have that, it's not bad. Start with the tutorial and work your way through it, and be sure to follow along . I had a decent grasp after about 2 days, and in 3 weeks I'd rewritten my whole project in Django, getting back to the functionality level I'd previously written in Pylons. This included delving into some of the more esoteric corners like templat…

Thank you very much every one and Nostrademons in particular. I really appreciate your insights. Very helpful. What web-host (cheap and reliable:-)you guys use to deploy python-based apps?

Webfaction.com is good for Django, Rails, Pylons, etc.
Post reply on HN