Skip to content

valsteen/disqus-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

disqus-postgres

An enhanced psycopg2 backend for Django. This is more or less a collection of hacks.

It provides the following additional features:

  • Automatic reconnection when a connection is dropped under various conditions.
  • Improved tracebacks for transactional errors (e.g. TransactionAborted)
  • Delays SET TIME ZONE until your first query.
  • Adds a true @autocommit decorator which forces isolation level changes.

Note

This backend was developed against Django 1.2.7, and some of these changes may no longer be relevant in later versions of Django.

Usage

DATABASES = {
    'default': {
        'NAME': 'disqus',
        'BACKEND': 'dsq_postgres.backend',
    },              
}

About

Tiny patch to make disqus-postgres supported by django 1.4 . It is run against tests on a fairly large project with custom fields, views, sequences and stored procedures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%