hi, folks. I just follow the doc "The Joy of SQLAlchemy" at
http://docs.turbogears.org/1.0/SQLAlchemy. Everything is ok if I
"tg-admin sql create" by default sqlite uri. But after I change the uri
to postgresql and create it(no error occurs), every page of the site
return a traceback:
500 Internal error
The server encountered an unexpected condition which prevented it from
fulfilling the request.
Traceback (most recent call last):
File
"c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy\_cphttptools.py",
line 103, in _run
applyFilters('before_main')
File
"c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy\filters\__init__.py",
line 151, in applyFilters
method()
File
"c:\python24\lib\site-packages\TurboGears-1.0b1-py2.4.egg\turbogears\visit\api.py",
line 140, in before_main
visit= _manager.visit_for_key( visit_key )
File
"c:\python24\lib\site-packages\TurboGears-1.0b1-py2.4.egg\turbogears\visit\savisit.py",
line 42, in visit_for_key
if not visit or visit.expiry < now:
TypeError: can't compare offset-naive and offset-aware datetimes
Is the postgresql not compatible with SA and TG? thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---