George
unread,Apr 7, 2009, 8:39:49 PM4/7/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi-
I'm pretty sure this shouldn't happen; but the error is no doubt my
fault. Maybe something about the doc doesn't apply to my system? I
have pkgsrc python2.5 and Django 1.0.2
# python2.5 manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_manager(settings)
File "/usr/pkg/lib/python2.5/site-packages/django/core/management/
__init__.py", line 340, in execute_manager
utility.execute()
File "/usr/pkg/lib/python2.5/site-packages/django/core/management/
__init__.py", line 295, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/pkg/lib/python2.5/site-packages/django/core/management/
base.py", line 192, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/pkg/lib/python2.5/site-packages/django/core/management/
base.py", line 218, in execute
self.validate()
File "/usr/pkg/lib/python2.5/site-packages/django/core/management/
base.py", line 246, in validate
num_errors = get_validation_errors(s, app)
File "/usr/pkg/lib/python2.5/site-packages/django/core/management/
validation.py", line 22, in get_validation_errors
from django.db import models, connection
File "/usr/pkg/lib/python2.5/site-packages/django/db/__init__.py",
line 34, in <module>
(settings.DATABASE_ENGINE, ", ".join(map(repr,
available_backends)), e_user)
django.core.exceptions.ImproperlyConfigured: 'sqlite3' isn't an
available database backend. Available options are: 'creation.pyo',
'dummy', 'postgresql', 'util.pyo'
Error was: No module named _sqlite3
# ls /usr/pkg/lib/python2.5/sqlite3/
dbapi2.py dbapi2.pyc dbapi2.pyo __init__.py __init__.pyc
__init__.pyo test
# which python2.5
/usr/pkg/bin/python2.5
# grep sqlite3 settings.py
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2',
'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = '/usr/local/dtest/dtest.db' # Or path to
database file if using sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost.
Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not
used with sqlite3.