Answers for "django redis install"

0

django redis install

django - redis install on windows for ASGI application
----------------------------------
1. https://github.com/microsoftarchive/redis/releases
2. start the server
	redis-server #click
3. check the server
	redis-cli #click
    >ping	#type
4. at the bottom of setting.py in django project... copy and paste below code

ASGI_APPLICATION = "core.routing.application"
CHANNEL_LAYERS = {
    'default': {
        'BACKEND': 'channels_redis.core.RedisChannelLayer',
        'CONFIG': {
           "hosts": [('127.0.0.1', 6379)],# or "redis://'127.0.0.1:6379",
        },
    },
}
Posted by: Guest on July-27-2021

Python Answers by Framework

Browse Popular Code Answers by Language