Skip to main content

Atomic transaction aware signals for Django 1.6+

Project description

https://travis-ci.org/adamchainz/django_atomic_dispatch.png?branch=master

Don’t Use This Library

This library uses django-atomic-signals. Unfortunately that library is deprecated, and is a bit too hacky. There is plenty of extra description why on django-atomic-signals’ README, and also on the similar library django-transaction-signals, by Django core developer Aymeric.

If you want a supported method of executing a signal dispatch only when the current transaction commits, then:

Both give examples so you are in good hands. In most cases you will just need to use a regular signal and make its send() happen inside a lambda that is passed to on_commit.

If your project is still using this library, please migrate. You will need to remove django-atomic-signals as well as django-atomic-dispatch. A new, “don’t use me” version that breaks on import will be pushed soon to PyPI to propagate this warning.

Old Readme Continues

django_atomic_dispatch provides a Django 1.6-1.7 compatible approach to transactionally aware signal dispatch.

Installation

To install django_atomic_dispatch, do yourself a favor and don’t use anything other than pip:

$ pip install django-atomic-dispatch

Add django_atomic_dispatch along with its dependency, django_atomic_signals, to the list of installed apps in your settings file:

INSTALLED_APPS = (
    'django_atomic_signals',
    'django_atomic_dispatch',
    ..
)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-atomic-dispatch-1.0.1.tar.gz (4.5 kB view details)

Uploaded Source

File details

Details for the file django-atomic-dispatch-1.0.1.tar.gz.

File metadata

File hashes

Hashes for django-atomic-dispatch-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4fb1f54c4bb8ae4b76758dc292c69cc8dc35d759562bebd420751082aa33e28a
MD5 3f7d1933e0d9509574a1b30ce788b1f1
BLAKE2b-256 482fef809e51b0e6ac1e7dbd4a1365ba66914541f0664500b0013c4851f695ca

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page