pip install django-clearcache
Allows you to clear Django cache via admin UI or manage.py command.
Install using PIP:
pip install django-clearcache
Add clearcache to INSTALLED_APPS, make sure it's above django.contrib.admin
:
INSTALLED_APPS += [
...
'clearcache',
'django.contrib.admin',
...
]
urlpatterns = [
url(r'^admin/clearcache/', include('clearcache.urls')),
url(r'^admin/', include(admin.site.urls)),
]
/admin/clearcache/
, you should see a form with cache selectorpython manage.py clearcache
python manage.py clearcache cache_name
Git
Stars
13
Forks
6
Watchers
1