Fix settings
Some checks failed
Build / Code quality (push) Has been cancelled

This commit is contained in:
2025-02-05 10:33:23 -03:00
parent 64d0105d4a
commit 50690f01cf
2 changed files with 4 additions and 29 deletions

View File

@@ -12,7 +12,7 @@ OP_ITEM_TITLE = os.environ.get('OP_ITEM_TITLE', 'mines')
op_env = OnePassword(SCOPE, OP_ITEM_TITLE)
sentry_sdk.init(
dsn=op_env.get('settings.SENTRY_DSN'),
dsn=op_env.get('SENTRY_DSN'),
integrations=[DjangoIntegration()],
environment=SCOPE,
send_default_pii=False,
@@ -23,12 +23,12 @@ sentry_sdk.init(
BASE_DIR = Path(__file__).resolve().parent.parent
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = op_env.get('settings.SECRET_KEY')
SECRET_KEY = op_env.get('SECRET_KEY')
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = op_env.get('settings.DEBUG', '0') in ['1', 'true']
DEBUG = op_env.get('DEBUG', '0') in ['1', 'true']
ALLOWED_HOSTS = op_env.get('settings.ALLOWED_HOSTS', '127.0.0.1,localhost').split(',')
ALLOWED_HOSTS = op_env.get('ALLOWED_HOSTS', '127.0.0.1,localhost').split(',')
# Application definition
INSTALLED_APPS = [