Opened 13 years ago

Closed 13 years ago

#530 closed defect (invalid)

Unable to initialize SQLite database

Reported by: anonymous Owned by: Adrian Holovaty
Component: Database layer (models, ORM) Version:
Severity: critical Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Plateform: Win2000; python2.4; pysqlite 2.0.4; django 654 revision

While Initializing, got the error:

Error: The database couldn't be initialized.
unable to open database file

p.s. did include absolute path in for sqlite (such as c:\xxx\xxx)
DATABASE_ENGINE = 'sqlite3' # 'postgresql', 'mysql', or 'sqlite3'.
DATABASE_NAME = 'C:\DjanGoProject\first_proj\sqlitedb' # Or path to database file if using sqlite3.
DATABASE_USER = # Not used with sqlite3.
# Not used with sqlite3.
DATABASE_HOST = # Set to empty string for localhost. Not used with sqlite3.

Change History (1)

comment:1 Changed 13 years ago by Eugene Lazutkin

Resolution: invalid
Status: newclosed

You should escape \ in strings. Example:


Or use / instead:

Note: See TracTickets for help on using tickets.
Back to Top