Django redis pull
Project description
Installation
$ pip install django-redis-push
settings.py
INSTALLED_APPS+=['django_redis_push']
REDIS_HOST = os.getenv("REDIS_HOST", "localhost")
REDIS_PORT = os.getenv("REDIS_PORT", 6379)
REDIS_DB = os.getenv("REDIS_DB", 0)
migrate
$ python manage.py migrate
Features
- data push from database to redis
- logging
- logging.debug messages
- database log
- admin
Models
model | db_table | fields/columns |
---|---|---|
PushData |
redis_push_data |
id ,queue ,data |
PushLog |
redis_push_log |
id ,queue ,count ,created_at |
Management commands
name | description |
---|---|
redis_push |
push PushData /redis_push_data to redis |
Examples
$ python manage.py redis_push
from django.core.management import call_command
call_command("redis_push")
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
File details
Details for the file django_redis_push-0.0.2.tar.gz
.
File metadata
- Download URL: django_redis_push-0.0.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36ac32204e466fc5dcd51cd3d508987789ed031105bee461fc1b169d45596c4c |
|
MD5 | 41c3cfccfda3fa1e29231a0d12219ecf |
|
BLAKE2b-256 | 73b47356e9ad064a15681494ea54c9c5b6d3c8f880652e711374df170e318350 |