>From Django Djumpstart I attemptd:
python manage.py syncdb
and got an error:
C:\Django\gtd>python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.py", line 1319, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.py", line 1243, in execute_from_command_line
    action_mapping[action]()
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.py", line 426, in syncdb
    from django.db import connection, transaction, models,
get_creation_module
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\db\__init__.p
y", line 11, in <module>
    backend = __import__('django.db.backends.%s.base' %
settings.DATABASE_ENGINE
, '', '', [''])
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\db\backends\s
qlite3\base.py", line 13, in <module>
    raise ImproperlyConfigured, "Error loading pysqlite2 module: %s" %
e
django.core.exceptions.ImproperlyConfigured: Error loading pysqlite2
module: No
module named pysqlite2

I changed   File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\db\backends\s
qlite3\base.py"
to read
from sqlite3 import dbapi2 as Database
instead of
from pysqlite2 import dbapi2 as Database

and fixed that error. Now the error is:

 C:\Django\gtd>python manage.py syncdb
Traceback (most recent call last):
  File "manage.py", line 11, in <module>
    execute_manager(settings)
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.py", line 1319, in execute_manager
    execute_from_command_line(action_mapping, argv)
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.py", line 1243, in execute_from_command_line
    action_mapping[action]()
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\core\manageme
nt.py", line 446, in syncdb
    cursor = connection.cursor()
  File
"C:\Python25\lib\site-packages\django-0.95-py2.5.egg\django\db\backends\s
qlite3\base.py", line 48, in cursor
    detect_types=Database.PARSE_DECLTYPES | Database.PARSE_COLNAMES)
sqlite3.OperationalError: unable to open database file

I have edited 'DATABASE_NAME' in the settings file to point to a
directory to hold my database. The documentation claims that the
database will be created automatically when using sqlite.

Is this the case? 

Karl


--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to