I was just recently installing django on one of my computers and I noticed that django has "postgres? ( dev-python/psycopg )" in it, while the postgres flag actually depends on dev-python/psycopg-1* Reproducible: Always Steps to Reproduce: 1. install django with the postgres useflag 2. try to use it and you'll get an error Actual Results: Traceback (most recent call last): File "./manage.py", line 11, in ? execute_manager(settings) File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1319, in execute_manager execute_from_command_line(action_mapping, argv) File "/usr/lib/python2.4/site-packages/django/core/management.py", line 1243, in execute_from_command_line action_mapping[action]() File "/usr/lib/python2.4/site-packages/django/core/management.py", line 426, in syncdb from django.db import connection, transaction, models, get_creation_module File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 11, in ? backend = __import__('django.db.backends.%s.base' % settings.DATABASE_ENGINE, '', '', ['']) File "/usr/lib/python2.4/site-packages/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 Expected Results: A working django application
Please read this: http://www.mail-archive.com/django-users@googlegroups.com/msg14308.html
I stand corrected. However, perhaps it would be a good idea to tell the users that they have to use the 'postgresql_psycopg2' driver with psycopg2? (as django doesn't show the option by itself)