Skip to content

Commit

Permalink
Use DummyCache in Development
Browse files Browse the repository at this point in the history
  • Loading branch information
banesullivan committed Apr 18, 2022
1 parent f156cd4 commit 2684c88
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion project/example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,13 @@ def mutate_configuration(configuration: ComposedConfiguration) -> None:


class DevelopmentConfiguration(ExampleMixin, DevelopmentBaseConfiguration):
pass
@staticmethod
def mutate_configuration(configuration: ComposedConfiguration) -> None:
configuration.CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.dummy.DummyCache',
}
}


class TestingConfiguration(ExampleMixin, TestingBaseConfiguration):
Expand Down

0 comments on commit 2684c88

Please sign in to comment.