Add atomic requests setting to production.py (#1513)

Since config/production.py sets a new value for `DATABASES['default']`, the `DATABASES['default']['ATOMIC_REQUESTS'] = True` setting from base gets overridden. So it's probably a good idea to add it back.
This commit is contained in:
Hashim Muqtadir 2018-02-16 20:15:50 +05:00 committed by Nikita Shupeyko
parent d783367a86
commit e8ca2dd8ea

View File

@ -177,7 +177,7 @@ TEMPLATES[0]['OPTIONS']['loaders'] = [
# Raises ImproperlyConfigured exception if DATABASE_URL not in os.environ
DATABASES['default'] = env.db('DATABASE_URL')
DATABASES['default']['CONN_MAX_AGE'] = env.int('CONN_MAX_AGE', default={{ _DEFAULT_CONN_MAX_AGE }})
DATABASES['default']['ATOMIC_REQUESTS'] = True
# CACHING
# ------------------------------------------------------------------------------