Skip to content
This repository was archived by the owner on Aug 30, 2023. It is now read-only.

getsentry/disqus-postgres

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No description or website provided.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%