use self._config instead of app.config
This commit is contained in:
@@ -229,7 +229,7 @@ class RedisSessionInterface(SessionInterface):
|
||||
"""
|
||||
if self.backend is None:
|
||||
import aioredis
|
||||
uri = app.config.get('SESSION_URI', 'redis://localhost')
|
||||
uri = self._config.get('SESSION_URI', 'redis://localhost')
|
||||
self.backend = await aioredis.from_url(
|
||||
uri, encoding="utf-8", decode_responses=True
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user