From 5aae3b20228226196d7e065489c951dbccd715da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gregor=20M=C3=BCllegger?= Date: Fri, 3 Jul 2015 12:17:59 +0200 Subject: [PATCH] Use ATOMIC_REQUESTS=True to wrap every django request in a database transaction. --- readthedocs/settings/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/readthedocs/settings/base.py b/readthedocs/settings/base.py index ab9fc5240b5..2c95e5e2586 100644 --- a/readthedocs/settings/base.py +++ b/readthedocs/settings/base.py @@ -92,6 +92,8 @@ ACCOUNT_ACTIVATION_DAYS = 7 +ATOMIC_REQUESTS = True + TEMPLATE_LOADERS = ( 'django.template.loaders.filesystem.Loader', 'django.template.loaders.app_directories.Loader',