Added ATOMIC_REQUESTS=True to default DB setup

Quoting Two Scoops of Django:
> Use `ATOMIC_REQUESTS` as long as the performance overhead is bearable. That
> means "forever" on most sites.
This commit is contained in:
Martin Blech 2014-12-02 17:30:46 -03:00
parent 3fb367b477
commit 96d053c866

View File

@ -264,4 +264,8 @@ class Common(Configuration):
} }
# END LOGGING CONFIGURATION # END LOGGING CONFIGURATION
@classmethod
def post_setup(cls):
cls.DATABASES['default']['ATOMIC_REQUESTS'] = True
# Your common stuff: Below this line define 3rd party library settings # Your common stuff: Below this line define 3rd party library settings