mirror of
https://github.com/daniviga/django-ram.git
synced 2026-02-05 10:30:38 +01:00
15 lines
426 B
Python
15 lines
426 B
Python
from django.conf import settings
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class RamConfig(AppConfig):
|
|
name = "ram"
|
|
|
|
def ready(self):
|
|
cache_middleware = set([
|
|
"django.middleware.cache.UpdateCacheMiddleware",
|
|
"django.middleware.cache.FetchFromCacheMiddleware",
|
|
])
|
|
if cache_middleware.issubset(settings.MIDDLEWARE):
|
|
from ram.signals import clear_cache # noqa: F401
|