django-clearcache-backport


Namedjango-clearcache-backport JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/bernardoduarte
SummaryAllows you to clear Django cache via admin UI or manage.py command
upload_time2021-05-04 18:59:09
maintainer
docs_urlNone
authorBernardo Duarte
requires_python>=2.7,<3.0
licenseMIT
keywords django cache
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            This is a backport package from [@timonweb](https://github.com/timonweb)'s [ClearCache](https://github.com/timonweb/django-clearcache) to Python 2.7.

# Django ClearCacheBackport

![License](https://img.shields.io/pypi/l/django-clearcache-backport)
![Django versions](https://img.shields.io/pypi/djversions/django-clearcache-backport)
![Python versions](https://img.shields.io/pypi/pyversions/django-clearcache-backport)

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

![demo](https://raw.githubusercontent.com/bernardoduarte/django-clearcache-backport/master/demo.gif)

## 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
      ```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/bernardoduarte",
    "name": "django-clearcache-backport",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=2.7,<3.0",
    "maintainer_email": "",
    "keywords": "django,cache",
    "author": "Bernardo Duarte",
    "author_email": "bernardoeiraduarte@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/11/71/be340963bccc540c69de92ebf867d11d010a102c116cc9db2dc0baf6b0b6/django-clearcache-backport-1.0.0.tar.gz",
    "platform": "",
    "description": "This is a backport package from [@timonweb](https://github.com/timonweb)'s [ClearCache](https://github.com/timonweb/django-clearcache) to Python 2.7.\n\n# Django ClearCacheBackport\n\n![License](https://img.shields.io/pypi/l/django-clearcache-backport)\n![Django versions](https://img.shields.io/pypi/djversions/django-clearcache-backport)\n![Python versions](https://img.shields.io/pypi/pyversions/django-clearcache-backport)\n\nAllows you to clear Django cache via admin UI or manage.py command.\n\n![demo](https://raw.githubusercontent.com/bernardoduarte/django-clearcache-backport/master/demo.gif)\n\n## Installation\n\n1. Install using PIP:\n\n      ```\n      pip install django-clearcache-backport\n      ```\n\n2. Add **clearcache** to INSTALLED_APPS, make sure it's above `django.contrib.admin`:\n\n      ```\n      INSTALLED_APPS += [\n          ...\n          'clearcache',\n          'django.contrib.admin',\n          ...\n      ]\n      ```\n\n3. Add url to the main **urls.py** right above root admin url:\n   \n       ```\n       urlpatterns = [\n           url(r'^admin/clearcache/', include('clearcache.urls')),\n           url(r'^admin/', admin.site.urls),\n       ]\n       ```\n\n## Usage\n\n### Via Django admin\n\n1. Go to `/admin/clearcache/`, you should see a form with cache selector\n2. Pick a cache. Usually there's one default cache, but can be more.\n3. Click the button, you're done!\n\n### Via manage.py command\n\n1. Run the following command to clear the default cache\n\n      ```\n      python manage.py clearcache\n      ```\n\n2. Run the command above with an additional parameter to clear non-default cache (if exists):\n\n      ```\n      python manage.py clearcache cache_name\n      ```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Allows you to clear Django cache via admin UI or manage.py command",
    "version": "1.0.0",
    "split_keywords": [
        "django",
        "cache"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "bec4180764c619267f98eceb6056d8a0",
                "sha256": "a9b2f81d1f9898c5cbbd06f64b98040ce043d71f69124e4e1e29fb4232af9013"
            },
            "downloads": -1,
            "filename": "django_clearcache_backport-1.0.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "bec4180764c619267f98eceb6056d8a0",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7,<3.0",
            "size": 7199,
            "upload_time": "2021-05-04T18:59:11",
            "upload_time_iso_8601": "2021-05-04T18:59:11.789924Z",
            "url": "https://files.pythonhosted.org/packages/d6/cc/a10aa274383a390214d0171145ffe5f8f13a510d54e0ed2fd591db6319ff/django_clearcache_backport-1.0.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "4872927dc075bf699693f72bf946e20a",
                "sha256": "937daddd595f675293fceaa22da1b13f961963b2a8bb7c8498735e1528396c3b"
            },
            "downloads": -1,
            "filename": "django-clearcache-backport-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "4872927dc075bf699693f72bf946e20a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7,<3.0",
            "size": 5628,
            "upload_time": "2021-05-04T18:59:09",
            "upload_time_iso_8601": "2021-05-04T18:59:09.894784Z",
            "url": "https://files.pythonhosted.org/packages/11/71/be340963bccc540c69de92ebf867d11d010a102c116cc9db2dc0baf6b0b6/django-clearcache-backport-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-04 18:59:09",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "django-clearcache-backport"
}
        
Elapsed time: 0.25494s