This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py.sample
76 lines (60 loc) · 1.62 KB
/
config.py.sample
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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
DEBUG = True
ADMINS = ('[email protected]')
DB_HOST = 'localhost'
DB_USER = ''
DB_PASS = ''
DB_NAME = 'tekstmelding'
API_KEYS = {
'somesecretkey': 'appname'
}
MEMBERSHIP_PRICE_KR = 1
# Logging
LOGGING = {
'version': 1,
'disable_existing_loggers': True,
'formatters': {
'fmt': {
'format': '%(asctime)s - %(name)s - %(levelname)s - %(message)s',
},
},
'handlers': {
'file': {
'class': 'logging.handlers.RotatingFileHandler',
'level': 'DEBUG',
'formatter': 'fmt',
'filename': '/tmp/tekstmelding-app.log',
},
'email': {
'class': 'logging.handlers.SMTPHandler',
'level': 'ERROR',
'mailhost': ('localhost', 25),
'fromaddr': '[email protected]',
'toaddrs': ADMINS,
'subject': 'Tekstmelding FAIL',
},
},
'loggers': {
'': {
'handlers': ['file', 'email'],
'level': 'DEBUG',
'propagate': False,
},
}
}
# Sendega
# Endpoint for HTTP POST/GET
SENDEGA_URL = 'https://smsc.sendega.com/SendSms.ashx'
# Endpoint for SOAP communication with Sendega
SENDEGA_WSDL = 'https://smsc.sendega.com/Content.asmx?WSDL'
# Our endpoint for delivery reports
SENDEGA_DLR = 'http://example.com/dlr'
# Our Sendega username
SENDEGA_USERNAME = ''
# Our Sendega password
SENDEGA_PASSWORD = ''
# Default sender of bulk text messages
SENDEGA_SENDER_BULK = 'DNS'
# Default sender of billing text messages, must be the short number
SENDEGA_SENDER_BILLING = '2454'