Skip to content

Installation

1. Install the Package

pip install dj-cache-panel

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

python manage.py migrate

5. Access the Panel

  1. Start your Django development server:

    python manage.py runserver
    

  2. Navigate to http://127.0.0.1:8000/admin/

  3. Look for the "DJ_CACHE_PANEL" section

  4. 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.