Blog

Saturday, June 13, 2009
TurboGears? Hmmm. Try Django.

I'm going for 2.0.

Following the instructions here:

sudo easy_install -i http://www.turbogears.org/2.0/downloads/current/index tg.devtools

Naturally, I got complaints, so I had to do this:
easy_install -U setuptools

Nope. It seems that no force on earth can update the default MacOS install of setuptools, so I just deleted it. The newer one had been put into /usr/local/bin by previous attempts to update setuptools (which is what the error message told me to do.)

We're still gonna need db drivers, so
sudo easy_install MySQL_python

The driver for sqlite is allegedly already part of Python.

So back to the install of TurboGears. The 2.0 docs are full of talk of "virtual environments" which makes me queasy. The reason I'm doing Python is simplicity, and that shit is not simple.

Like RoR (and PHP's ZF as I discovered) there is a CLI tool that sets things up. It's called paster.

So we follow the directions here: http://turbogears.org/2.0/docs/main/QuickStart.html — very well written, btw.

paster quickstart
blah blah blah

This is hell! It's worse than the PHP stuff! I wanted to go Python for simplicity, but this is a Heavy Weight Framework. Sheesh. Oh, it looks like a nice enough framework, but I am not looking for a PhD in frameworks. I just wanna get my app out the door! And, most important, I need something that is ISP-friendly. I simply cannot imagine doing all these arcane gymnastics in a user directory without root access.

Along the way I did
sudo port install python_select

and I love it!

So a quick
sudo python_select python26
and off to install django:
sudo port install py26-django

Labels:

Post a Comment

Comments:

AddThis Feed Button

Twitter Updates

    follow me on Twitter

    Archives