Cleanup some settings.

This commit is contained in:
Usman Khalid
2015-11-20 18:18:32 +05:00
parent 6a76db085f
commit dc7b57f459
5 changed files with 8 additions and 8 deletions

View File

@@ -269,6 +269,8 @@ else:
DATABASES = AUTH_TOKENS['DATABASES']
# Enable automatic transaction management on all databases
# https://docs.djangoproject.com/en/1.8/topics/db/transactions/#tying-transactions-to-http-requests
# This needs to be true for all databases
for database_name in DATABASES:
DATABASES[database_name]['ATOMIC_REQUESTS'] = True