I have created a workspace on my local machine to connect to Linux server. I connect to this server in VS Code using SSH extension as outlined in these docs. https://code.visualstudio.com/docs/remote/ssh#_managing-extensions.
When I run the .py application in my Local Workspace I get the error UndefinedValueError: CREDENTIALS not found. Declare it as envvar or define a default value.
The .py application is in the same directory as the .env file which houses the CREDENTIALS variable on the Linux server and when run on the Linux server works fine..
How do I tell vscode on my local machine to access the .env file when Im running the .py application locally?
from decouple import config
credentials = config('CREDENTIALS')
Only started working in this type of coding environment today so apologies in advance if I have missed something very simple...