Looking for help solving an issue. I have stored a public key in .env file, public key is having \n in it and for .env i have used python dcouple but when I am using the environment variable in a function then \n is not doing its job but it is becoming the part of the string.
.env
KEY=-----BEGIN PUBLIC KEY-----\nAp4k567H7J7\nG2rtJH\nLok1FG3\n-----END PUBLIC KEY-----\n
utility.py
var = data(KEY=config('KEY'))
print(config('KEY')) #it is not giving the desired result its printing below result
-----BEGIN PUBLIC KEY-----\nAp4k567H7J7\nG2rtJH\nLok1FG3\n-----END PUBLIC KEY-----\n
but i need this string to be like this when used in utility.py
-----BEGIN PUBLIC KEY-----
Ap4k567H7J7
G2rtJH
Lok1FG3
-----END PUBLIC KEY-----