Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#517 closed defect (fixed)

Error message with django-admin.py : "The database couldn't be initialized." set_isolation_level

Reported by: hornero@… Owned by: Adrian Holovaty
Component: Core (Management commands) Version:
Severity: normal Keywords: set_isolation_level
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I've got a problem with django-admin.py :

django-admin.py init --settings=processing.settings.main
Error: The database couldn't be initialized.
set_isolation_level

Any ideas on this error?
Perhaps, I must change the line 30

self.connection.set_isolation_level(1)

in core/db/backends/postgresql.py?
I use the last version of django on subversion.

Change History (2)

comment:1 by Adrian Holovaty, 19 years ago

Are you using psycopg version 1.x? Which version are you using? psycopg version 2.x isn't supported yet, because it's still in beta.

comment:2 by hornero@…, 19 years ago

Resolution: fixed
Status: newclosed

This problem is solved now :

The version of psycopg was too old (1.0.15). With the last version (1.1.19), it works fine!

Thanks a lot for your reply, Adrian.

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