[Tilesathome] Need help installing tahngo server

Alan Millar am12 at bolis.com
Mon Jul 14 15:32:17 BST 2008


>> What's the right way to tell Python/Django about the tah module?

> If I'm remembering my Django tutorials correctly, Django knows about your
> app via the "INSTALLED_APPS" configuration variable. There's an array of
> classes in there that it will use.

It looks like it is using INSTALLED_APPS to look for the "tah" module, but
couldn't find it on disk.

> Ahh, ooh. I have never thought about that, but after checking out the
> source you would get the directory "tahserver_tahngo" (or similar), right?
> You need to rename that base directory to be "tah". Everything else just
> worked for me.

Yes, changing the base directory to "tah" worked.

Which led me into the following error:

> ----------------------------
> Error: Couldn't install apps, because there were errors in one or more
> models:
> tah.requests: __init__() got an unexpected keyword argument 'max_length'
> ----------------------------

Google tells me that this is some sort of error in versions of Django,
where they are in the process of converting from maxlength to max_length. 
I had installed Django 0.96.2 from the official release tarball, which
gave the max_length error above.

So I removed it and installed the development copy from the Django svn
repository.  That eliminated the max_length error.  It then gave me some
warnings about "maxlength" being deprecated.  But syncdb finally said it
created the tables (using sqlite2), so it looks good.

Now onto the next step.

- Alan






More information about the Tilesathome mailing list