What could be wrong running django locally, in terms of session caching?

178 Views Asked by At

There seems to be a problem with redis, even though i've ran the same application successfully with the same django settings.

In settings.py, my database settings are as such:

**

if os.environ.get('REDIS_URL'):  
    CACHES['default'] = {
        'BACKEND': 'django_redis.cache.RedisCache',
        'LOCATION': os.environ.get('REDIS_URL')}

DATABASES = {
    'default': dj_database_url.config(
        default='postgres://localhost:5432/saleor',
        conn_max_age=600)}

**

I get this error:

saleor.W001: Session caching cannot work with locmem backend HINT: User sessions need to be globally shared, use a cache server like Redis.

0

There are 0 best solutions below