What causes the wsgi version of a buildout to have a problem with TIME_ZONE?

setting.py has

# system time zone.
TIME_ZONE = 'America/Chicago'

bin/django runserver works fine with postgresql database.

bin/django.wsgi  still uses development include file with:


from industromatic_com.settings import *
DEBUG=True
TEMPLATE_DEBUG=DEBUG

bin/django.wsgi

has the same path as bin/django

There is much more on the python path, presumably imported with import 
djangorecipe.wsgi

Error and data below.

Any ideas appreciated.

Thanks,

John

-----------------
http://dpaste.com/215326/
----------------------------
argument 1 must be a string or unicode object

Request Method:         GET
Request URL:    http://localhost:8080/pages/new3
Django Version:         1.2.1
Exception Type:         TypeError
Exception Value:        

argument 1 must be a string or unicode object

Exception Location: /home/john/WEBprojects/industromatic_bld/parts/django/django/db/backends/postgresql_psycopg2/base.py in _cursor, line 144
Python Executable:      /usr/bin/python
Python Version:         2.5.5
Python Path: ['/home/john/buildout/eggs/mock-0.7.0b2-py2.6.egg', '/home/john/buildout/eggs/Fabric-0.9.1-py2.6.egg', '/home/john/buildout/eggs/Unipath-0.2.1-py2.6.egg', '/home/john/buildout/eggs/django_notification-0.1.5-py2.6.egg', '/home/john/WEBprojects/industromatic_bld/src/django-page-cms', '/home/john/buildout/eggs/django_haystack-1.0.1_final-py2.6.egg', '/home/john/buildout/eggs/django_staticfiles-0.2.0-py2.6.egg', '/home/john/buildout/eggs/django_messages-0.4.4-py2.6.egg', '/home/john/buildout/eggs/django_mptt_2-0.3.0-py2.6.egg', '/home/john/buildout/eggs/Whoosh-0.3.18-py2.6.egg', '/home/john/buildout/eggs/djangorecipe-0.20-py2.6.egg', '/home/john/buildout/eggs/zc.recipe.egg-1.2.3b2-py2.6.egg', '/home/john/buildout/eggs/zc.buildout-1.5.0b2-py2.6.egg', '/home/john/WEBprojects/industromatic_bld/parts/django', '/home/john/buildout/eggs/coverage-3.3.1-py2.6-linux-i686.egg', '/home/john/buildout/eggs/django_authority-0.4-py2.6.egg', '/home/john/buildout/eggs/django_tagging-0.3.1-py2.6.egg', '/home/john/buildout/eggs/html5lib-0.90-py2.6.egg', '/home/john/buildout/eggs/BeautifulSoup-3.1.0.1-py2.6.egg', '/usr/lib/python2.6/dist-packages', '/home/john/WEBprojects/industromatic_bld/parts/django', '/home/john/WEBprojects/industromatic_bld', '/home/john/buildout/eggs/mock-0.7.0b2-py2.6.egg', '/home/john/buildout/eggs/Fabric-0.9.1-py2.6.egg', '/home/john/buildout/eggs/Unipath-0.2.1-py2.6.egg', '/home/john/buildout/eggs/django_notification-0.1.5-py2.6.egg', '/home/john/WEBprojects/industromatic_bld/src/django-page-cms', '/home/john/buildout/eggs/django_haystack-1.0.1_final-py2.6.egg', '/home/john/buildout/eggs/django_staticfiles-0.2.0-py2.6.egg', '/home/john/buildout/eggs/django_messages-0.4.4-py2.6.egg', '/home/john/buildout/eggs/django_mptt_2-0.3.0-py2.6.egg', '/home/john/buildout/eggs/Whoosh-0.3.18-py2.6.egg', '/home/john/buildout/eggs/djangorecipe-0.20-py2.6.egg', '/home/john/buildout/eggs/zc.recipe.egg-1.2.3b2-py2.6.egg', '/home/john/buildout/eggs/zc.buildout-1.5.0b2-py2.6.egg', '/home/john/WEBprojects/industromatic_bld/parts/django', '/home/john/buildout/eggs/coverage-3.3.1-py2.6-linux-i686.egg', '/home/john/buildout/eggs/django_authority-0.4-py2.6.egg', '/home/john/buildout/eggs/django_tagging-0.3.1-py2.6.egg', '/home/john/buildout/eggs/html5lib-0.90-py2.6.egg', '/home/john/buildout/eggs/BeautifulSoup-3.1.0.1-py2.6.egg', '/usr/lib/python2.6/dist-packages', '/home/john/WEBprojects/industromatic_bld/parts/django', '/home/john/WEBprojects/industromatic_bld', '/home/john/buildout/eggs/mock-0.7.0b2-py2.6.egg', '/home/john/buildout/eggs/Fabric-0.9.1-py2.6.egg', '/home/john/buildout/eggs/Unipath-0.2.1-py2.6.egg', '/home/john/buildout/eggs/django_notification-0.1.5-py2.6.egg', '/home/john/WEBprojects/industromatic_bld/src/django-page-cms', '/home/john/buildout/eggs/django_haystack-1.0.1_final-py2.6.egg', '/home/john/buildout/eggs/django_staticfiles-0.2.0-py2.6.egg', '/home/john/buildout/eggs/django_messages-0.4.4-py2.6.egg', '/home/john/buildout/eggs/django_mptt_2-0.3.0-py2.6.egg', '/home/john/buildout/eggs/Whoosh-0.3.18-py2.6.egg', '/home/john/buildout/eggs/djangorecipe-0.20-py2.6.egg', '/home/john/buildout/eggs/zc.recipe.egg-1.2.3b2-py2.6.egg', '/home/john/buildout/eggs/zc.buildout-1.5.0b2-py2.6.egg', '/home/john/WEBprojects/industromatic_bld/parts/django', '/home/john/buildout/eggs/coverage-3.3.1-py2.6-linux-i686.egg', '/home/john/buildout/eggs/django_authority-0.4-py2.6.egg', '/home/john/buildout/eggs/django_tagging-0.3.1-py2.6.egg', '/home/john/buildout/eggs/html5lib-0.90-py2.6.egg', '/home/john/buildout/eggs/BeautifulSoup-3.1.0.1-py2.6.egg', '/usr/lib/python2.6/dist-packages', '/home/john/WEBprojects/industromatic_bld/parts/django', '/home/john/WEBprojects/industromatic_bld', '/usr/lib/python2.5/site-packages/SimpleParse-2.1.1a2-py2.5-linux-i686.egg', '/usr/lib/python2.5/site-packages/virtualenv-1.4.5-py2.5.egg', '/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg', '/usr/lib/python2.5/site-packages/PasteDeploy-1.3.3-py2.5.egg', '/usr/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/pymodules/python2.5', '/usr/lib/pymodules/python2.5/gtk-2.0', '/usr/lib/pymodules/python2.5/FontTools', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode']

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to