Thursday, September 2, 2010

Re: mod_wsgi, apache, windows XP

On 3/09/2010 2:16pm, Jesse wrote:
> I have django and postgres working on the local django server. I had
> to install psycopg2-2.2.2.win32-py2.7 in order for that to work. I
> don't believe I have access to an earlier version of psycopg. Are you
> using postgres?

Yes but a different stack - python 2.6, the same revision of postgresl
and psycopg2. I run the django development server on Win XP and Apache
2.2 on linux. I leave postgresql running on the XP machine and point the
linux setup at it across the LAN so I can use development machine data
for the time being. Works well.

I haven't been following this thread closely but I do remember some time
ago getting the same error because I had forgotten to install psycopg2
when deploying to the linux machine.

Your error actually says django either can't find the backend you have
specified in your settings.py or it can find it but it isn't available
for some reason.

I would be investigating the database side of things. Without googling I
would know whether there might be any subtle psycopg2 version problems
but I'd eliminate everything else as a possibility first.

Mike

> Jesse
>
> On Sep 2, 5:41 pm, Mike Dewhirst<mi...@dewhirst.com.au> wrote:
>> On 3/09/2010 7:46am, 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.
>>
>> I don't think it is a wsgi problem. This looks like you may not have
>> installed psycopg2 on your server.
>>

<snip>

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

No comments:

Post a Comment