forked from cfpb/retirement
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_settings.py
73 lines (54 loc) · 1.45 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"""
test settings
"""
import os
from django.utils.translation import ugettext_lazy as _
BASE_DIR = os.path.dirname(__file__)
SECRET_KEY = 'secret_for_testing_only'
LANGUAGES = (
('es', _('Spanish')),
('en', _('English')),
)
FIXTURE_DIRS = (
'%s/retirement_api/fixtures/' % BASE_DIR,
)
STANDALONE = True
DEBUG = True
TEMPLATE_DEBUG = True
ALLOWED_HOSTS = []
TEMPLATE_DIRS = (
'%s/retirement_api/templates' % BASE_DIR,
)
# Application definition
INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'retirement_api',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
ROOT_URLCONF = 'retirement_api.urls'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
}
}
LANGUAGE_CODE = 'en-us'
TIME_ZONE = 'UTC'
USE_I18N = True
USE_L10N = True
USE_TZ = True
STATIC_URL = '/retirement/static/'
STATIC_ROOT = '%s/retirement_api/static/' % BASE_DIR