Hi,
I'm following the tutorial and on page 2, I've hit a number of minor
annoyances.
1. Edited dev.cfg by uncommenting (blanking the #) postgres line,
restarted TG and got errors ending in
ConfigParser.ParsingError: File contains parsing errors: dev.cfg
[line 8]: ' sqlobject.dburi="postgres://[EMAIL PROTECTED]/tg"\n'
The problem was fixed by deleting the blanks. Apparently CherryPy's
parser is not very sophisticated (found ticket #266 in their Trac).
Maybe the tutorial should make clear that "uncommenting" includes
removing leadins spaces.
2. "Creating the Database" is misleading. In my experience, that's
what Postgres and MySQL createdb or CREATE DATABASE commands do, and you
have to do that *before* you run tg-admin sql create, which creates
tables in the database. IMHO, the heading should be Creating the
Database Tables (or Objects) and the tutorial should mention the
database has to be created beforehand.
3. The tg-admin sql create command greeted me with
Database URI not specified in the config file (prod.cfg).
Please be sure it's on the command line.
but the tutorial says to edit dev.cfg.
4. Tried to click on "Comment on this page" link on the bottom right
and was taken to a New Ticket Trac page, indicating
Permission Denied
TICKET_CREATE privileges are required to perform this operation
At that point I opted to write this email.
5. I played with tg-admin help to find I should use tgadmin sql create
-c dev.cfg to get it to look at the right config file. However, that
led to another traceback ending with
File
"/usr/local/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg/sqlobject/dbconnection.py",
line 924, in connectionForURI
assert self.instanceNames.has_key(uri), \
AssertionError: No SQLObject driver exists under the name dev.cfg
I guess I need to install a PG driver, but it's too late now so I'll
have to research that tomorrow. However, it would also be helpful if
the tutorial mentioned the need for the driver.
I realize that TG is still a work in progress, so I hope the above
comments help to improve the product.
Regards,
Joe
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---