-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.py
78 lines (60 loc) · 1.38 KB
/
settings.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
import sys
import os.path
ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), ''))
sys.path.insert(0, ROOT)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
RQ_QUEUES = {
'default': {
'HOST': 'localhost',
'PORT': 6379,
'DB': 0,
'PASSWORD': '',
},
}
SMSAERO_USER = ''
SMSAERO_PASSWORD = ''
SMSAERO_PASSWORD_MD5 = ''
SECRET_KEY = '!!!very_secret!!!'
ROOT_URLCONF = 'smsaero.urls'
WSGI_APPLICATION = 'wsgi.application'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'factory',
'smsaero',
'django_rq',
'south',
)
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(levelname)s %(asctime)s %(module)s %(funcName)s %(message)s'
}
},
'handlers': {
'sms_send': {
'level': 'DEBUG',
'class': 'logging.handlers.WatchedFileHandler',
'filename': os.path.join(ROOT, 'sms_send.log'),
'formatter': 'verbose'
}
},
'loggers': {
'smsaero': {
'handlers': ['sms_send'],
'level': 'ERROR',
'propagate': True
}
}
}