Configuration¶
Config options are mostly passed to Indigo as environment variables. These are the options you can set:
AWS_ACCESS_KEY_IDRequired for production. The AWS access key ID for the account with write-access to the S3 bucket used for storing attachments.
AWS_SECRET_ACCESS_KEYRequired for production. The AWS secret access key for the account with write-access to the S3 bucket used for storing attachments.
AWS_S3_BUCKETRequired for production. The name of the S3 bucket for storing attachments.
AWS_S3_HOSTThe regional S3 endpoint to use. Optional. Default:
s3-eu-west-1.amazonaws.comDATABASE_URLRequired. The URL of the database to use
DJANGO_DEBUGThe Django
DEBUGsetting. Everything other thantruemeans False. This should always befalsein production. Default:trueDJANGO_DEFAULT_FROM_EMAILThe Django
DEFAULT_FROM_EMAILsetting: who do emails come from? UsesSUPPORT_EMAILby default.DJANGO_EMAIL_HOSTThe Django
EMAIL_HOSTsetting. The SMTP host through which to send user emails such as password resets.DJANGO_EMAIL_HOST_PASSWORDThe Django
EMAIL_HOST_PASSWORDsetting. The SMTP password.DJANGO_EMAIL_HOST_PORTThe Django
EMAIL_HOST_PORTsetting. The SMTP port (default: 25).DJANGO_EMAIL_HOST_USERThe Django
EMAIL_HOST_USERsetting. The SMTP username.DJANGO_SECRET_KEYRequired if DJANGO_DEBUG is not true. The Django
SECRET_KEYsetting. In production you should use a random (and secret) string.GOOGLE_ANALYTICS_IDGoogle Analytics ID for website tracking. Only used when
DEBUGis False.SUPPORT_EMAILRequired Email address users can email for help.
Authentication¶
Indigo uses django-allauth for user authentication and social accounts, configuration is as per the django-allauth documentation.
Social Accounts¶
By default, Indigo doesn’t have any social account authentication enabled. To enable a social provider, follow the documentation for django-allauth. Namely, you’ll need to:
Include the account provider in INSTALLED_APPS:
INSTALLED_APPS = INSTALLED_APPS + (‘allauth.socialaccount.providers.google’,)
Get the appropriate client and secret keys from the provider, and create a social app in the admin interface.