Opened 10 years ago

Closed 10 years ago

Last modified 8 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
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: UI/UX:

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 Changed 10 years ago by adrian

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 Changed 10 years ago by hornero@…

  • Resolution set to fixed
  • Status changed from new to closed

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