Sage
Set the SAGE_URL_AUTH
in your .env
file e.g:
SAGE_URL_AUTH="https://www.sageone.com/oauth2/auth/central?filter=apiv3.1"
Set the SAGE_CLIENT_ID
in your .private
file e.g:
SAGE_CLIENT_ID="2e4c160f4992..."
In your settings/base.py
file:
SAGE_CLIENT_ID = get_env_variable("SAGE_CLIENT_ID")
SAGE_URL_AUTH = get_env_variable("SAGE_URL_AUTH")
Add the following to the urls.py
file in your project:
re_path(r"^sage/", view=include("sage.urls")),