Hello-
First of all, this is on OS X and Python 2.4. I'm able to import
django, and import pysqlite2 from the python command line, and create
a project and start a server. But I'm unable to proceed with doing a
syncdb - My settings.py has 'sqlite3' as the DATABASE_ENGINE and a
path of '/pythondev/db/anewdb.db' as my DATABASE_NAME (a newly created
sqlite db, pythondev being at root level of my hard drive). I'm
getting the error that it seems folks on python 2.5 are getting when
trying to syncdb:
Sleekster-II:/pythondev/djangosite oco$ python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 11, in ?
execute_manager(settings)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/django/core/management.py", line 1672, in
execute_manager
execute_from_command_line(action_mapping, argv)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/django/core/management.py", line 1571, in
execute_from_command_line
action_mapping[action](int(options.verbosity),
options.interactive)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/django/core/management.py", line 486, in
syncdb
from django.db import connection, transaction, models,
get_creation_module
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/django/db/__init__.py", line 11, in ?
backend = __import__('django.db.backends.%s.base' %
settings.DATABASE_ENGINE, {}, {}, [''])
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/
lib/python2.4/site-packages/django/db/backends/sqlite3/base.py", line
18, in ?
raise ImproperlyConfigured, "Error loading %s module: %s" %
(module, e)
django.core.exceptions.ImproperlyConfigured: Error loading pysqlite2
module: Inappropriate file type for dynamic loading
sigh. Any ideas?
Thank you for any help.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---