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
Release files for django-clearcache-backport 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-clearcache-backport-1.0.0.tar.gz | 5.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| django_clearcache_backport-1.0.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 12.8 kB
Release files / django-clearcache-backport-1.0.0.tar.gz
| Download URL | django-clearcache-backport-1.0.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
937daddd595f675293fceaa22da1b13f961963b2a8bb7c8498735e1528396c3b
|
|
BLAKE2b-256 checksum How to use checksums |
1171be340963bccc540c69de92ebf867d11d010a102c116cc9db2dc0baf6b0b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/2.7.17 Linux/5.4.0-72-generic
|
Release files / django_clearcache_backport-1.0.0-py2.py3-none-any.whl
| Download URL | django_clearcache_backport-1.0.0-py2.py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
a9b2f81d1f9898c5cbbd06f64b98040ce043d71f69124e4e1e29fb4232af9013
|
|
BLAKE2b-256 checksum How to use checksums |
d6cca10aa274383a390214d0171145ffe5f8f13a510d54e0ed2fd591db6319ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/2.7.17 Linux/5.4.0-72-generic
|