-
Notifications
You must be signed in to change notification settings - Fork 2
/
test_settings.py
54 lines (48 loc) · 1.21 KB
/
test_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
import os
PROJECT_PATH = os.path.realpath(os.path.dirname(__file__))
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'django_nokia',
}
}
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'nokiaapp',
]
SECRET_KEY = 'something-secret'
ROOT_URLCONF = 'nokiaapp.urls'
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
'DIRS': [
os.path.join(PROJECT_PATH, 'nokiaapp', 'templates'),
os.path.join(PROJECT_PATH, 'nokiaapp', 'tests', 'templates')
],
},
]
NOKIA_CLIENT_ID = 'fakeid'
NOKIA_CONSUMER_SECRET = 'fakesecret'
NOKIA_SUBSCRIBE = True
USE_TZ = True
TIME_ZONE = 'America/Chicago'
LOGGING = {
'version': 1,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'logging.NullHandler',
},
},
'loggers': {
'nokiaapp.tasks': {'handlers': ['null'], 'level': 'DEBUG'},
},
}
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
)