Unable to read Environment Variable using django-decouple when deploying

Does the env variable SECRET_KEY is necessary at the build time or run time of your application?

Qovery injects all your environment variables and secrets at build AND run time. If you are using your environment variables and secrets at the build time AND with a Dockerfile, you will need to indicate that you are using those environment variables in your Dockerfile.

You can refer to this thread.