From 6e39a8f7a884366d9dbd6c79b165bab6e2ce7a87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Mon, 29 Dec 2014 15:58:58 +0100 Subject: [PATCH] Add django-transactional-cleanup and configure it --- requirements.txt | 1 + settings/common.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 2810c5f9..3b91231c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -28,6 +28,7 @@ raven==5.1.1 bleach==1.4 django-ipware==0.1.0 premailer==2.8.1 +django-transactional-cleanup==0.1.12 # Comment it if you are using python >= 3.4 enum34==1.0 diff --git a/settings/common.py b/settings/common.py index e27df665..46e9b343 100644 --- a/settings/common.py +++ b/settings/common.py @@ -33,7 +33,7 @@ LANGUAGES = ( DATABASES = { "default": { - "ENGINE": "django.db.backends.postgresql_psycopg2", + "ENGINE": "transaction_hooks.backends.postgresql_psycopg2", "NAME": "taiga", } } @@ -204,6 +204,7 @@ INSTALLED_APPS = [ "django_jinja.contrib._humanize", "easy_thumbnails", "raven.contrib.django.raven_compat", + "django_transactional_cleanup", ] WSGI_APPLICATION = "taiga.wsgi.application"