Skip to content

Glossary: Django Beyond the Basics

@override_settings

Also written: override_settings

A Django test decorator that temporarily changes settings for one test or one test class. It is used, for example, to turn on `CELERY_TASK_ALWAYS_EAGER` so tasks run immediately, or to switch to an in-memory cache.

Where the book teaches it

Related terms

CELERY_TASK_ALWAYS_EAGERLocMemCache