Hi all,

using django 0.9.5 on Windows with Python 2.4 with psycopg2

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

Thanks,
Lorenzo


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to