forked from rapidsms/rapidsms-core-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.py
61 lines (50 loc) · 1.57 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
#!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4
from rapidsms.djangoproject.settings import *
DATABASE_ENGINE = "sqlite3"
DATABASE_NAME = "/tmp/rapidsms.sqlite3"
INSTALLED_APPS = [
"rapidsms",
"rapidsms.contrib.handlers",
"rapidsms.contrib.echo",
"rapidsms.contrib.ajax",
"rapidsms.contrib.httptester",
"rapidsms.contrib.registration",
# enable the django admin using a little shim app (which includes
# the required urlpatterns), and a bunch of undocumented apps that
# the AdminSite seems to explode without
"django.contrib.auth",
"django.contrib.admin",
'django.contrib.sessions',
"django.contrib.contenttypes",
"rapidsms.contrib.djangoadmin"
]
# These apps should not be started by rapidsms in your tests
# However the models + bootstrap will still be available through
# django
TEST_EXCLUDED_APPS = (
"django.contrib.sessions",
"django.contrib.contenttypes",
"django.contrib.auth",
"rapidsms",
"rapidsms.contrib.ajax",
"rapidsms.contrib.httptester",
)
# the INSTALLED_BACKENDS setting is intended to resemble django 1.2's
# DATABASE: http://docs.djangoproject.com/en/dev/ref/settings/#databases
INSTALLED_BACKENDS = {
#"AT&T": {
# "ENGINE": "rapidsms.backends.gsm",
# "PORT": "/dev/ttyUSB0"
#},
#"Verizon": {
# "ENGINE": "rapidsms.backends.gsm,
# "PORT": "/dev/ttyUSB1"
#},
"message_tester": {
"ENGINE": "rapidsms.backends.bucket"
}
}
# after login, django redirects to this URL
# rather than the default 'accounts/profile'
LOGIN_REDIRECT_URL='/'