Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 411 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 411 Bytes

dj-secrets-loader

The purpose of this project is to make docker secrets available in Django settings.py

Install

pip install dj-secrets-loader

Usage

in setting.py

from dj_secrets_loader import load_secrets
secrets = load_secrets()

The result will be a dictionary that it's keys are the filenames in docker secret folder ('/run/secrets/') and the value is the content of that file