Pylons tip #5 – Streaming static files

Pylons makes it super easy to return data to a client. You just return a string from your controller method!

class HelloController(BaseController):
 
def index(self):
return ‘Hello World!’

Very nice. However, what if you want to serve up a potentially quite large file to the client? [...]

Py Web SF: The San Francisco Python & Web Technology Meet-up

Last month I started Py Web SF, the San Francisco Python & Web Technology meet-up. The idea is 1-2 conversation-style presentations of about 30 minutes with a group of 10-20 people. My hope is to have a more intimate group than the very good Bay Piggies (which I highly recommend). With a [...]

Turbo Gears 2.0 Released

I read today that Turbo Gears 2.0 has been released – at long last! I used Turbo Gears 1 briefly in 2007 for a small project then switched to Pylons.
Pylons is pretty neat because its really a framework for building a framework. You can pick and choose WSGI middleware and slot it [...]

Tips for outsourcing web design with eLance.com

A few weeks ago I needed a designer to produce some HTML/CSS and Photoshop templates for a web project I’m working on. While I have good working knowledge of HTML and CSS, I am not very interested nor efficient at working with it. And even worse, I’m quite poor at coming up with [...]

Word Press post from shell

One of the most annoying things about this whole weblog business is having to write your posts in the browser. I can’t stand entering any more than a few sentences in a web browser text area. Not only because web browsers are so unstable, prone to crashing, or that its so easy to [...]