Trying to start dev server of django on mac os x with postresql
database.
bash-3.2$ ./manage.py runserver
Validating models...
Unhandled exception in thread started by <function inner_run at
0x1006a6cf8>
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/django/core/management/
commands/runserver.py", line 48, in inner_run
self.validate(display_num_errors=True)
File "/Library/Python/2.6/site-packages/django/core/management/
base.py", line 249, in validate
num_errors = get_validation_errors(s, app)
File "/Library/Python/2.6/site-packages/django/core/management/
validation.py", line 22, in get_validation_errors
from django.db import models, connection
File "/Library/Python/2.6/site-packages/django/db/__init__.py", line
74, in <module>
connection = connections[DEFAULT_DB_ALIAS]
File "/Library/Python/2.6/site-packages/django/db/utils.py", line
75, in __getitem__
backend = load_backend(db['ENGINE'])
File "/Library/Python/2.6/site-packages/django/db/utils.py", line
20, in load_backend
return import_module('.base', backend_name)
File "/Library/Python/2.6/site-packages/django/utils/importlib.py",
line 35, in import_module
__import__(name)
File "/Library/Python/2.6/site-packages/django/db/backends/
postgresql_psycopg2/base.py", line 23, in <module>
DatabaseError = Database.DatabaseError
AttributeError: 'module' object has no attribute 'DatabaseError'
Any ideas? :)
--
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.