The the name to a file in a directory - SQLite databases are a single file,
and it won't be able to create one if a directory already exists with the
same name.

-joe

On 12/14/06, kbochert <[EMAIL PROTECTED]> wrote:
>
>
> I tried to do:
> Python manage.py syncdb
> and got the error "No module named pysqlite2". I edited the file
> \Python25\Lib\site-packages\Django-
> 0.95-py2.5.egg\django\db\backends\sqlite3\base.py
> to read:
> from sqlite3 import dbapi2 as Database
> instead of
> from pysqlite2 import dbapi2 as Database
> and the error went away.
>
> Is this legitimate or have I messed something up?
>
>
> 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
> from sqlite3  "unable to open database file"
>
>
> I have created a directory, and set 'DATABASE NAME' in settings to
> point to it.
> The documentation claims that the database will be created
> automatically when using sqlite3.
> Is this really 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