Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_redis_push-0.0.2.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page