mirror of
https://github.com/hellosteadman/bambu-buffer.git
synced 2025-05-05 00:39:52 +00:00
Fixed ENABLED setting
This commit is contained in:
parent
b7d9fdb779
commit
307d1b61a0
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ from django.conf import settings as s
|
||||||
from django.utils.timezone import now
|
from django.utils.timezone import now
|
||||||
from os import environ
|
from os import environ
|
||||||
|
|
||||||
ENABLED = getattr(s, 'BUFFER_ENABLED', not environ.get('BUFFER_DISABLED'))
|
ENABLED = getattr(s, 'BUFFER_ENABLED', True) and not environ.get('BUFFER_DISABLED')
|
||||||
CLIENT_ID = s.BUFFER_CLIENT_ID
|
CLIENT_ID = s.BUFFER_CLIENT_ID
|
||||||
CLIENT_SECRET = s.BUFFER_CLIENT_SECRET
|
CLIENT_SECRET = s.BUFFER_CLIENT_SECRET
|
||||||
AUTH_REDIRECT = getattr(s, 'BUFFER_AUTH_REDIRECT', '/')
|
AUTH_REDIRECT = getattr(s, 'BUFFER_AUTH_REDIRECT', '/')
|
||||||
|
|
Loading…
Reference in a new issue