Skip to main content

Django Dragon Cache Manager 🐲

A cache manager for Django admin.

"What did he promise you, a share of the treasure? As if it was his to give.
I will not part with a single coin! Not one piece of it!"

- Smaug

Installation

  1. Install the package: pip install django-dragon
  2. Add dragon_cache_manager to your INSTALLED_APPS in Django settings.
  3. Add the Dragon URLs before admin/: path('admin/dragon/', include('dragon_cache_manager.urls')),
  4. Dragon will be accessible from /admin/dragon.

Configuration

All Dragon settings are prefixed by DRAGON_.

USER_TEST_CALLBACK

request is the only argument and is the current Request instance.

Callback for determining access to the Dragon pages.

Should return True if allowed. Otherwise, False.

By default, any staff or superuser will be able to access Dragon.

USER_IS_SUPERUSER

Indicates if a superuser is allowed to view Dragon.

Default: True

USER_IS_STAFF

Same as USER_IS_SUPERUSER but for staff.

Default: False

ENABLE_INDEX

Indicates if the Redis key index should be shown.

Default: False

MAX_RESULTS

Maximum number of results to return on a key search.

Default: 50

Commands

load_test_cache

Adds X keys to a cache specified in settings.CACHES.

For each key, a random word from dragon/management/commands/random_words.txt will be used as the key and value.

  • -c/--cache - Specify the name of the cache to populate (defaults to all).
  • -k/--keys - Specify the number items to generate (defaults to 50).

Release files for django-dragon 0.1.6

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-dragon 0.1.6
File Size Uploaded
django-dragon-0.1.6.tar.gz 8.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-dragon 0.1.6
File Interpreter ABI Platform
django_dragon-0.1.6-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / django-dragon-0.1.6.tar.gz

Download URL django-dragon-0.1.6.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b070d7a7084750153ba62d74c054a52860ec2eca72313630d3d9d1d907528eb9
BLAKE2b-256 checksum
How to use checksums
3a3435de2e0cf5a5c9b4215d6d6e14b46d77db8c73863c3cc733192533b67f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.6.12 Linux/5.10.76-linuxkit

Release files / django_dragon-0.1.6-py3-none-any.whl

Download URL django_dragon-0.1.6-py3-none-any.whl
Size 12.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e5dd4c7035eb0bf3bbfa90540144bb2256f7898a2c7d35069f02c7d3c14b544
BLAKE2b-256 checksum
How to use checksums
ef52447bf485672d3c225c4cfef23b0098398729157091443a02104fd304ff9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.6.12 Linux/5.10.76-linuxkit

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

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