Allows you to clear Django cache via admin UI or manage.py command
Project description
This is a backport package from @timonweb's ClearCache to Python 2.7.
Django ClearCacheBackport
Allows you to clear Django cache via admin UI or manage.py command.
Installation
-
Install using PIP:
pip install django-clearcache-backport
-
Add clearcache to INSTALLED_APPS, make sure it's above
django.contrib.admin
:INSTALLED_APPS += [ ... 'clearcache', 'django.contrib.admin', ... ]
-
Add url to the main urls.py right above root admin url:
``` urlpatterns = [ url(r'^admin/clearcache/', include('clearcache.urls')), url(r'^admin/', admin.site.urls), ] ```
Usage
Via Django admin
- Go to
/admin/clearcache/
, you should see a form with cache selector - Pick a cache. Usually there's one default cache, but can be more.
- Click the button, you're done!
Via manage.py command
-
Run the following command to clear the default cache
python manage.py clearcache
-
Run the command above with an additional parameter to clear non-default cache (if exists):
python manage.py clearcache cache_name
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-clearcache-backport-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 937daddd595f675293fceaa22da1b13f961963b2a8bb7c8498735e1528396c3b |
|
MD5 | 4872927dc075bf699693f72bf946e20a |
|
BLAKE2b-256 | 1171be340963bccc540c69de92ebf867d11d010a102c116cc9db2dc0baf6b0b6 |
Close
Hashes for django_clearcache_backport-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b2f81d1f9898c5cbbd06f64b98040ce043d71f69124e4e1e29fb4232af9013 |
|
MD5 | bec4180764c619267f98eceb6056d8a0 |
|
BLAKE2b-256 | d6cca10aa274383a390214d0171145ffe5f8f13a510d54e0ed2fd591db6319ff |