Questions tagged [django-redis]

105 questions
0
votes
1 answer

What are the differences among django_redis, channels_redis, asgi_redis and redis server?

I am new to Django and right now i'm learning Django async with Channels. I have noticed some programmers use channels_redis for their projects, some use django_redis, some use asgi_redis and i found redis server in google. Is there any difference…
0
votes
0 answers

How to effectively manage cache (Redis) with Django Rest Framework?

We have been working with Django and Django RestFramework for quite a time now and facing a lot of challenging to manage cache in Redis, our models look like (1) School (Details of School) (2) Teacher (FK School, with all details of teacher) (3)…
0
votes
1 answer

Django-q: WARNING reincarnated worker Process-1:1 after timeout

I've installed and configured Django-Q 1.3.5 (on Django 3.2 with Redis 3.5.3 and Python 3.8.5). This is my Cluster configuration: # redis defaults Q_CLUSTER = { 'name': 'my_broker', 'workers': 4, 'recycle': 500, 'timeout': 60, …
Sandy
  • 85
  • 1
  • 8
0
votes
1 answer

Django redis caching per url

So I am trying to implement moreover learn how to cache Django views per URL. I am able to do so and here is what is happening... I visit a URL for 1st time and Django sets the caches. I get my result from cache and not from querying the database…
Ranu Vijay
  • 1,137
  • 9
  • 18
0
votes
2 answers

Can I run redis on a windows server?

I have designed an app in django using django channels with redis servers for websocket communication, but I have to host it on a windows server. I can run the redis server locally on my windows machine and it works well for testing on my localhost.…
0
votes
1 answer

(Django) RQ scheduler - Jobs disappearing from queue

Since my project has so many moving parts.. probably best to explain the symptom I have 1 scheduler running on 1 queue. I add scheduled jobs ( to be executed within seconds of the scheduling). I keep repeating scheduling of jobs with NO rq worker…
TaeWoo
  • 461
  • 3
  • 15
0
votes
0 answers

django-redis-cache creates random keys with integer values

I am using the following in my Django project: django-redis-cache==2.1.1 redis==3.5.5 Django==2.2.13 Python 3.7.5 In my settings.py I specified the following cache: CACHES = { "default": { "BACKEND": "redis_cache.RedisCache", …
0
votes
2 answers

how to deactivate compressor in django-redis?

I am using django-redis in django and want to turn off compressor. there are several options to set various types of compressors like zlib, lzma, etc. but not no compressor.
0
votes
1 answer

How we can use redis pipeline in django-redis?

I want to use Redis pipeline (execute multiple commands) in django-redis. We can use multi and exec command in Redis but how we can in django-redis ? One solution is : I have list of hash keys i want to get all hashes using of hash key. On every…
0
votes
1 answer

django-celery netcat spam within docker container

I am trying to run celery in a separate docker container alongside a django/redis docker setup. When I run docker-compose up -d --build, my logs via docker-compose logs --tail=0 --follow show the celery_1 container spamming the console repeatedly…
0
votes
1 answer

Django Mealtime server listener

I am pretty good at django. I have postgresql with some table and this table populated by a C++ apps. Now i want to build django app to visualize realtime basis whenever any changes occur in the database, it should update realtime in my django…
user12551055
0
votes
1 answer

Is normal django_redis generate this kind of session key?

I'm new to django_redis lib. I'm using this confs for session store with redis: ... CACHES = { "default": { "BACKEND": "django_redis.cache.RedisCache", "LOCATION": "redis://127.0.0.1:6379/1", "OPTIONS": { …
0
votes
1 answer

celery task in multiple queues not start

i use django with celery and redis to work with asynchronous tasks. I have three task defined which should run in your own queue. My project structure looks like this: django-project |- api |- task.py |- view.py |- django-project …
Basti G.
  • 411
  • 1
  • 5
  • 26
0
votes
1 answer

django docker container cannot access redis container when using redis as session backend

I am trying to deploy staging enviroment that mimics my django+postgresql(AWS RDS)+redis(AWS Elasticache). I use the latest django-redis(4.10) to set up django with redis. My settings are as follows: CACHES = { "default": { "BACKEND":…
Bossam
  • 744
  • 2
  • 9
  • 24
0
votes
1 answer

Django with redis is caching all pages

I'm using template cache with django-redis and it works properly but, although I don't use decorators (like cache_page, cache_control etc..), django is caching automatically every loaded page. I verified this using redis-cli. This is keys * output…