Hello Draden,
There are a few ways to do this. To just have a simple DEV, STG, or PROD. Import `from q2_sdk.core.configuration import settings` then call `settings.DEPLOY_ENV` to get 'DEV', 'STG', or 'PROD'. This will only differentiate between those three and FIs can have multiple 'STG' environments. So do be careful how you depend on this variable.
If you need environment specific data like for every installed location I recommend using Wedge_Address_Configs(https://docs.q2developer.com/tutorials/online_banking/configuration.html). In general this is the best way to have environment specific data.
Hope this helps,
Trey Teter
Hello Draden, the best way to do this is to use wedge_address_configs. That way you can set whether it be different urls to call, different values to pass to your api, or different api keys it can all be set on a per install basis.
How to tell which environment code is running in
Hello Draden, the best way to do this is to use wedge_address_configs. That way you can set whether it be different urls to call, different values to pass to your api, or different api keys it can all be set on a per install basis.