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
django.core.exceptions.ImproperlyConfigured: "server" must be an iterable or string #80
Comments
@mikeedwards – The latest release should have fixed that issue, let me know if it works for you. |
@sebleier yes, I update to django-redis-cache==1.2.1 and works fine. Thanks. |
@emilioramirez – Great! Thanks for testing. |
Seems like this issue may be back in 2.1.0? |
Same for me 2.1.1. |
Found that in following configuration CACHES = {
"default": {
"BACKEND": "redis_cache.RedisCache",
"LOCATION": os.environ.get('REDIS_URL'),
}
} FYI, @monokrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I pass a value of "server" that is type
unicode
instead ofstr
I get:More specifically, the
django-environ
app is what's passing the value in asunicode
but it seems like that should work either way.It looks as though a recent change to get_servers uses
isinstance
narrowly and only allows values that are typestr
:f88925a#diff-8fc3ae3ff1cb89b2f4ba473a41661d77R78
I'm using:
python 2.7.6
Django 1.8.2
django-environ 0.3.0
The text was updated successfully, but these errors were encountered: