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.