On 7/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm receiving the following error:
>
> C:\www\myproject>python manage.py sql user
> Traceback (most recent call last):
> File "manage.py", line 11, in ?
> execute_manager(settings)
> File
> "c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\core\management.py",
> line 1302, in execute_manager
> execute_from_command_line(action_mapping, argv)
> File
> "c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\core\management.py",
> line 1258, in execute_from_command_line
> from django.db import models
> File
> "c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\__init__.py",
> line 11, in ?
> backend = __import__('django.db.backends.%s.base' %
> settings.DATABASE_ENGINE, '', '', [''])
> File
> "c:\python24\lib\site-packages\django-0.95-py2.4.egg\django\db\backends\postgresql\base.py",
> line 12, in ?
> raise ImproperlyConfigured, "Error loading psycopg module: %s" % e
> django.core.exceptions.ImproperlyConfigured: Error loading psycopg
> module: No module named psycopg
>
> though the code reads like this:
> from django.db.backends import util
> try:
> import psycopg2 as Database
Hi Lorenzo,
>From the looks of that traceback, you're using the "postgresql"
backend rather than the "postgresql_psycopg2" backend. To use Django
with psycopg2, make sure your DATABASE_ENGINE setting is set to
'postgresql_psycopg2'.
Adrian
--
Adrian Holovaty
holovaty.com | djangoproject.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users
-~----------~----~----~----~------~----~------~--~---