Hi there! I have py25-django-1.0.2 port installed on FreeBSD. While
following this tutorial:
http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01
I've reached the line that says
DATABASE_ENGINE -- Either 'postgresql_psycopg2', 'mysql' or 'sqlite3'.
Other backends are also available.
So I set DATABASE_ENGINE = 'postgresql_psycopg2' in my settings.py,
but alas, manage.py runserver spits this:
Validating models...
Unhandled exception in thread started by <function inner_run at
0x8419cdc>
Traceback (most recent call last):
File "/usr/local/lib/python2.5/site-packages/django/core/management/
commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
File "/usr/local/lib/python2.5/site-packages/django/core/management/
base.py", line 246, in validate
num_errors = get_validation_errors(s, app)
File "/usr/local/lib/python2.5/site-packages/django/core/management/
validation.py", line 22, in get_validation_errors
from django.db import models, connection
File "/usr/local/lib/python2.5/site-packages/django/db/__init__.py",
line 16, in <module>
backend = __import__('%s%s.base' % (_import_path,
settings.DATABASE_ENGINE), {}, {}, [''])
File "/usr/local/lib/python2.5/site-packages/django/db/backends/
postgresql_psycopg2/base.py", line 20, in <module>
raise ImproperlyConfigured("Error loading psycopg2 module: %s" %
e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2
module: No module named psycopg2
This is no surprise, as django always attempts to install databases/py-
psycopg, and not databases/py-psycopg2, since the former is hardcoded
in its port Makefile. Any ideas?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---