Skip to content

Commit

Permalink
Add more default values
Browse files Browse the repository at this point in the history
  • Loading branch information
n2o committed Aug 22, 2024
1 parent bcd17bd commit ff67be1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mathefragen/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,20 +368,20 @@
'host': None,
'port': None,
'db': 0,
'password': env('REDIS_PASSWORD'),
'password': env('REDIS_PASSWORD', default=''),
'prefix': 'session',
'socket_timeout': 1,
'retry_on_timeout': True
}

SESSION_REDIS_SENTINEL_LIST = [
(
env('REDIS_SENTINEL_1'),
env('REDIS_SENTINEL_1_PORT')
env('REDIS_SENTINEL_1', default=''),
env('REDIS_SENTINEL_1_PORT', default='')
),
(
env('REDIS_SENTINEL_2'),
env('REDIS_SENTINEL_2_PORT')
env('REDIS_SENTINEL_2', default=''),
env('REDIS_SENTINEL_2_PORT', default='')
)
]

Expand Down

0 comments on commit ff67be1

Please sign in to comment.