The djangoapp was already using the entire logic of setting the environment variable based on some logics. Thus, I reused that here.