I managed to deploy my Django App on Railway.
For Caching i use Redis.
In my Django Code i still have my local Redis settings. Now i saw that i can add the Redis Service with one click to my project. But how do i need to adjust my code so that Redis works on my deployed app?
At the moment my cache settings look like this:
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
},
"KEY_PREFIX": "myapp",
}
}
Project ID: 86f38f52-2ee4-462c-bb83-67e22c0db4bf