Questions tagged [django-redis]

105 questions
1
vote
1 answer

get output from python script to django

I'm looking for get the outputs from a python script to my django web server. I will use pySmartDL in my script, so i need it to run even when django close itself and django needs to get data from a running script when it start-up. pySmartDL…
HolyFredy
  • 31
  • 5
1
vote
1 answer

How can I access the rest of the lower name spaces with django-redis?

How can I access the rest of the lower name spaces with django-redis? cache.keys("*") Is only giving me the name space 1:1:TEST which is the key I put in via django-redis. See image below that's the only name space that I'm able to access. How do…
cph
  • 458
  • 2
  • 6
  • 24
1
vote
0 answers

which one uses connection pools? django.core.cache vs django_redis.get_redis_connection (when using django-redis)

There are 2 methods to get the redis connection when using django-redis (https://niwinz.github.io/django-redis/latest/) lib method-1 from django.core.cache import caches # get redis cache from settings rcache = caches['redis'] method-2 from…
maheshg
  • 339
  • 2
  • 7
  • 17
1
vote
1 answer

django_cron executes only once, scheduler not working?

I have to implement task on schedule , for that i am using django_cron. In setting : INSTALLED_APPS = [ 'mailsnake', 'corsheaders', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', …
1
vote
1 answer

Should Redis for Django Session Storage Go on Separate Server?

I'm building a Django application that uses PostgreSQL for data storage and Redis with Django Redis Cache for Django session storage. I'm also using RQ for asynchronous job queues. I've built the application so that my PostgreSQL database resides…
Jim
  • 13,430
  • 26
  • 104
  • 155
1
vote
1 answer

Working with Redis to store Session - Django

I have installed django-redis-session via pip and add this settings to the settings.py file: SESSION_ENGINE = 'redis_sessions.session' When I go to the terminal and type: $ redis-cli monitor I can see there are changes when I log in and log out…
Gocht
  • 9,924
  • 3
  • 42
  • 81
1
vote
1 answer

Django 1.9 with cache in Redis

I have a application on Django 1.8.8 with cache based on django-redis. And I want to update to Django 1.9.2. But django-redis not working with Django >= 1.9. django-redis-cache also not working with Django 1.9 (for me). And I not found requirements…
Shmele
  • 64
  • 6
1
vote
1 answer

Django + redis session sharing accross multiple hosts

There are 2 django (same version, same sessions middleware) apps hosted on different hosts within the same domain which share a redis sessions-store. But then when we try login on one app, the second one never gets the session data. When the 2…
1
vote
1 answer

Django's query result caching

I am creating a website using Django 1.7 and GeoDjango. I've hit the point when i need to optimize website speed. One of the bottlenecks is query execution. There are some queries which run slowly even when optimized. So i'd like to cache query…
Termos
  • 664
  • 1
  • 7
  • 31
1
vote
1 answer

Django-redis configuration to use socket rather than TCP

I'm attempting to use django-redis using Unix sockets rather than a TCP connection: This is the settings.py configuration: CACHES = { 'default': { 'BACKEND': 'redis_cache.cache.RedisCache', 'LOCATION': 'unix:/tmp/redis.sock:1', …
Joseph Victor Zammit
  • 14,760
  • 10
  • 76
  • 102
0
votes
0 answers

Sending email with Celery and Redis cloud

I am trying to send an email using celery queue @shared_task as below: # removed imports for clarity # For debugging @shared_task(bind=True, name="send_email", max_retries=3, default_retry_delay=10) def send_email(self, subject, message, from_email,…
Jjkivai
  • 157
  • 1
  • 10
0
votes
0 answers

Can't use redis password with special characters in django

I have a redis server with authentication password containing =, and ?. Meanwhile I am using the Location scheme as redis://[:password]@localhost:6397. Config: 'default': { 'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION':…
Badr
  • 694
  • 1
  • 7
  • 26
0
votes
0 answers

Why ZADD command not working in Django-app?

I want to realize in my Django blog «Top 5 trend post». For this purpose, I implemented a Cron task that calls the function update_trends() once a day. This function should reset hits counter in Redis db. Hits counter is a Sorted Set with the…
0
votes
0 answers

Django Cache Causes Missing Staticfiles on Azure

Whenever I add the following code, the staticfiles will not be generated automatically by WhiteNoise Middlewire on Azure. CACHES = { 'default': { 'BACKEND': 'django_redis.cache.RedisCache', 'LOCATION':…
0
votes
0 answers

Upgrading Redis to 7.0.11 results in TypeError at /login/ __init__() got an unexpected keyword argument 'ssl_cert_reqs'

We use redis with django-rq to manage queues on our project. Heroku has recently forced upgrades to Redis 7.0.11 and that requires TLS. Per their docs we need to set 'ssl_cert_reqs'=None in order to make sure redis is using TLS but not looking for a…