Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't get values from os environ #45

Open
Brakkar opened this issue Dec 15, 2016 · 0 comments
Open

Doesn't get values from os environ #45

Brakkar opened this issue Dec 15, 2016 · 0 comments

Comments

@Brakkar
Copy link

Brakkar commented Dec 15, 2016

Hello,
i'm trying to use this with django 1.8

here is my settings.py

# Cache
os.environ[ 'MEMCACHE_SERVERS' ] = '***:***'
os.environ[ 'MEMCACHE_USERNAME' ] = '***'
os.environ[ 'MEMCACHE_PASSWORD' ] = '***'



CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
        'LOCATION': '****',
        'BINARY' : True,
    },

}

It seems to ignore completely what is in os environment. So if I don't put LOCATION in the caches, it won't pick it up from the os environ.
So when LOCATION in CACHES it connects, but it won't authenticate. I guess it doesn't pick username and password from environment.
is there an alternative way to force username, password ?

I use this with rediscloud memcache and their authentication is using SASL Authentication... if this makes any difference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant