Open evanburger opened 5 months ago
The value in the SECRET_KEY as well as other secrets should not saved in version control but only given to trusted developers. Instead SECRET_KEY can be brought in using the os.environ.get standard library function.
SECRET_KEY
os.environ.get
Ok i have installed decouple and added to my settings.py: SECRET_KEY = config('SECRET_KEY')
And moved my secret key to .env file. Let me know if you have any other suggestions!
The value in the
SECRET_KEY
as well as other secrets should not saved in version control but only given to trusted developers. InsteadSECRET_KEY
can be brought in using theos.environ.get
standard library function.