-
Notifications
You must be signed in to change notification settings - Fork 6
/
salt_settings_example.py
92 lines (65 loc) · 1.75 KB
/
salt_settings_example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Django configuration for EAA donation portal
#
# ***** DO NOT EDIT THIS FILE *****
#
# This file is managed by Salt via salt://eaa/web/templates/django-settings.jinja
import os
import datetime
from settings import BASE_DIR
#############################
### General Configuration ###
#############################
# Debug mode (do *not* use in production)
DEBUG = True
# Directory where various secrets are stored (e.g. RSA keys)
SECRETS_DIR = os.path.join(BASE_DIR, 'secrets')
# Directory where static files are collected and served from
STATIC_ROOT = os.path.join(BASE_DIR, 'tmp/static')
#######################
### Django Security ###
#######################
# Secret key used to provide cryptographic signing
SECRET_KEY = 'development'
############################
### Database Connections ###
############################
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'eaa',
'USER': 'dev',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
##############
### Celery ###
##############
BROKER_URL = 'redis://localhost:6379'
#############
### Redis ###
#############
REDIS_HOST = 'localhost'
REDIS_PORT = '6379'
################
### Postmark ###
################
EMAIL_BACKEND = 'postmark.django_backend.EmailBackend'
POSTMARK_API_KEY = 'secret'
POSTMARK_SENDER = 'donations@eaa.org.au'
POSTMARK_TEST_MODE = True
POSTMARK_TRACK_OPENS = False
############
### Xero ###
############
XERO_RSA_KEY = 'secret'
XERO_CONSUMER_KEY = 'secret'
XERO_INCOMING_ACCOUNT_ID = u'secret'
XERO_DAYS_TO_IMPORT = 300
##############
### Sentry ###
##############
# Enable Raven for reporting errors to Sentry
ENABLE_SENTRY = False
# vim: syntax=python cc=80 tw=79 ts=4 sw=4 sts=4 et sr