Configure

Here is the list of settings used by django-anysign.

INSTALLED_APPS

There is no need to register django-docusign application in your Django’s INSTALLED_APPS setting.

ANYSIGN

Since django-docusign depends on django-anysign [1], configure settings.ANYSIGN [2].

Example from the Demo project:

ANYSIGN = {
    'BACKENDS': {
        'docusign': 'django_docusign.backend.DocuSignBackend',
    },
    'SIGNATURE_TYPE_MODEL': 'django_docusign_demo.models.SignatureType',
    'SIGNATURE_MODEL': 'django_docusign_demo.models.Signature',
    'SIGNER_MODEL': 'django_docusign_demo.models.Signer',
}

DOCUSIGN_*

Settings prefixed with DOCUSIGN_ are used by DocuSignBackend as default values to setup pydocusign.DocuSignClient. Use them when you want to use some global configuration for your Django-powered project.

Note

If you need to use custom options depending on your requests (as an example if you use several DocuSign credentials depending on user accounts), then you can pass explicit arguments to DocuSignBackend.

Example from the Demo project:

DOCUSIGN_ROOT_URL = 'https://demo.docusign.net/restapi/v2'
DOCUSIGN_TIMEOUT = 10

Here are available settings:

  • settings.DOCUSIGN_ROOT_URL: root URL of DocuSign API.
  • settings.DOCUSIGN_USERNAME: API username.
  • settings.DOCUSIGN_PASSWORD: API password.
  • settings.DOCUSIGN_INTEGRATOR_KEY: API integrator key.
  • settings.DOCUSIGN_ACCOUNT_ID: API account ID.
  • settings.DOCUSIGN_APP_TOKEN: API AppToken.
  • settings.DOCUSIGN_TIMEOUT: Connection timeout.

Notes & references

[1]https://pypi.python.org/pypi/django-anysign
[2]https://django-anysign.readthedocs.org/en/latest/settings.html