Skip to content
This repository was archived by the owner on Apr 11, 2021. It is now read-only.

Production Settings

Bastien Abadie edited this page Aug 5, 2014 · 1 revision

Base

  • DEBUG=False must be set to enable a production environment.
  • ADMIN_BASE_URL='hidden_admin' will change the /admin url to hide it from script kiddies.
  • SECRET_KEY='very_long secret phrase' must be different from the default one in the versionned project.
  • ALLOWED_HOSTS = ['yourdomain.com'] is needed to allow only one domaiN.

GPG

Needed encrypt/decrypt the Garmin passwords.

  • GPG_HOME='/usr/share/gpghome'
  • GPG_KEY='DEADBEEF'
  • GPG_PASSPHRASE='MY_PASSWORD_GPG'

Email

Needed to send all the mails in the application.

  • EMAIL_USE_TLS = True
  • EMAIL_HOST = 'mail.provider.net'
  • EMAIL_HOST_USER = 'user@domain.com'
  • EMAIL_HOST_PASSWORD = 'mailpass'
  • EMAIL_PORT = 587
  • DEFAULT_FROM_EMAIL = 'user@domain.com'
  • SERVER_EMAIL = 'user@domain.com'

Clone this wiki locally