On 09/02/2010 11:46 PM, Jesse wrote:
Hello Graham,

I have the c:/public/apache/apache_django_wsgi.conf working now, at
least apache restarts.  Do you know if mod_wsgi has a problem with
these versions:
python 2.7 and apache 2.2, and postgres 8.4, psycopg 2.2.2

My server error is:

TemplateSyntaxError: Caught ImproperlyConfigured while rendering:
'django.db.backends.postgresql_psycopg2' isn't an available database
backend.
[Thu Sep 02 13:46:30 2010] [error] [client 127.0.0.1] Try using
django.db.backends.XXX, where XXX is one of:
[Thu Sep 02 13:46:30 2010] [error] [client 127.0.0.1]     'dummy',
'mysql', 'oracle', 'postgresql', 'postgresql_psycopg2', 'sqlite3'
[Thu Sep 02 13:46:30 2010] [error] [client 127.0.0.1] Error was:
cannot import name utils

I got the same error with python 2.6, mod_wsgi, windows. Even though psycopg2 was installed perfectly. Just half a minute earlier my "manage.py syncdb" created the database :-) And "runserver" works fine, only when running it under apache does this error crop up.

Graham has an article on the differences in running runserver versus django's own wsgi handling:
http://blog.dscpl.com.au/2010/03/improved-wsgi-script-for-use-with.html

I haven't figured out yet what's wrong. I'm using buildout's djangorecipe to set it all up and djangorecipe's wsgi file does most of the tricks that Graham's improved wsgi script does.


Weeeeeiiiiird error.


Reinout

--
Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org
Collega's gezocht!
Django/python vacature in Utrecht: http://tinyurl.com/35v34f9

--
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