Skip to main content

This is a backport package from @timonweb's ClearCache to Python 2.7.

Django ClearCacheBackport

License Django versions Python versions

Allows you to clear Django cache via admin UI or manage.py command.

demo

Installation

  1. Install using PIP:

    pip install django-clearcache-backport
    
  2. Add clearcache to INSTALLED_APPS, make sure it's above django.contrib.admin:

    INSTALLED_APPS += [
        ...
        'clearcache',
        'django.contrib.admin',
        ...
    ]
    
  3. 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

  1. Go to /admin/clearcache/, you should see a form with cache selector
  2. Pick a cache. Usually there's one default cache, but can be more.
  3. Click the button, you're done!

Via manage.py command

  1. Run the following command to clear the default cache

    python manage.py clearcache
    
  2. 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)

Source distribution for django-clearcache-backport 1.0.0
File Size Uploaded
django-clearcache-backport-1.0.0.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-clearcache-backport 1.0.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page