Installation
1. Install the Package
2. Add to Django Settings
Add dj_cache_panel to your INSTALLED_APPS:
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'dj_cache_panel', # Add this
# ... your other apps
]
3. Include URLs
Add the Cache Panel URLs to your main urls.py:
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/dj-cache-panel/', include('dj_cache_panel.urls')),
path('admin/', admin.site.urls),
]
4. Run Migrations
5. Access the Panel
-
Start your Django development server:
-
Navigate to
http://127.0.0.1:8000/admin/ -
Look for the "DJ_CACHE_PANEL" section
-
Click "Manage Cache keys and values"
That's it! No additional configuration required. Django Cache Panel will automatically detect all cache backends defined in your CACHES setting.