TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Getting started with Python for web development

8 点作者 tuhin大约 14 年前
I am an Interface Designer by profession. Lately I have been trying to teach myself to teach programing language.<p>The only prior experience I have is a bit of C, just enough Php to get through to make WP themes from scratch and just finished the MIT OCW 6.0 along with the book How to Think Like a Computer Scientist.<p>Also I know basic MySQL, thanks to my job as an Analyst for over a year.<p>Now I would like to get started with exposing myself to the part of building apps even if they are the most basic ones. Where should I begin with Web development using Python? (I know Php should have been the logical choice but I am just in love with Python for some reason; seems just <i>right</i> to me than C or Php)<p>A point to note is that I am highly inclined for Pylons framework over Django because a project on which I want to work on later with other serious/experienced programmers requires it due to its sheer scale. I do not expect to be doing the same level of coding as them but at least I can help them when I am done with the design and UX part of the app.<p>Should I go for a basic thing like web.py and learn the building blocks or choose Pylons? Please keep in mind my understanding of server side programming, MVC etc is very limited.

5 条评论

swanson大约 14 年前
I would take a look at Flask. It is great for small applications. Read the quickstart guide (<a href="http://flask.pocoo.org/docs/quickstart/#a-minimal-application" rel="nofollow">http://flask.pocoo.org/docs/quickstart/#a-minimal-applicatio...</a>). Follow the tutorial for making a blog (<a href="http://flask.pocoo.org/docs/tutorial/introduction/" rel="nofollow">http://flask.pocoo.org/docs/tutorial/introduction/</a>).<p>After that you will know how to do URL routing, rendering views/templates, and making database calls -- the backbones of making a web application.
personalcompute大约 14 年前
Django and Pylons will both introduce you to a lot of advanced concepts that I would imagine to be very confusing to someone not familiar with programming. I'd recommend you first learn Python more fully before you start working with a framework. In fact, at this point I would recommend practicing with traditional desktop scripts as opposed to anything on the web, but using CGI may actually be a better choice in getting you down the path you want to go faster.
lovskogen大约 14 年前
I'm also an interface designer, wanting to learn Python to make stuff. We're in the same boat! I'm reading Head First Python, a real newbie book. My knowledge just contains HTML and CSS, so I'm <i>really</i> starting from scratch.<p>Would love to see your progress and learn from it.<p>@lovskogen
评论 #2296925 未加载
elg0nz大约 14 年前
Actually, you should just do it. The polls tutorial is reply well written, and I am a firm believer that the best way to learn something is by hacking some project out of it. Good luck !
mathnode大约 14 年前
I found this quite handy: <a href="http://docs.python.org/howto/webservers.html" rel="nofollow">http://docs.python.org/howto/webservers.html</a><p>I am a cgibin kind of person.