I use multiple settings.py files to do this. Specifically, in my main one, I
have what I consider the only acceptable instance of import *.
import os
if (os.getenv('PRODUCTION')):
from .prod_settings import *
else:
from .dev_settings import *
While dev_settings.py is in my repo, prod_se
On 10 December 2020 at 01:18:16, Pankaj Jangid (pan...@codeisgreat.org)
wrote:
Fenrir Sivar writes:
> I inherited a django app that calls private APIs in a view to fetch some
> data. The credentials or api keys are currently hardcoded in the source,
> making it difficult to share.
> What is the
Fenrir Sivar writes:
> I inherited a django app that calls private APIs in a view to fetch some
> data. The credentials or api keys are currently hardcoded in the source,
> making it difficult to share.
> What is the preferred way to store these kind of keys in a secure way only
> accessible to t
Hi Fenrir,
On 12/8/20 7:28 AM, Fenrir Sivar wrote:
I inherited a django app that calls private APIs in a view to fetch some
data. The credentials or api keys are currently hardcoded in the source,
making it difficult to share.
What is the preferred way to store these kind of keys in a secure wa
4 matches
Mail list logo