-
Notifications
You must be signed in to change notification settings - Fork 0
/
testsettings.py
56 lines (41 loc) · 1.39 KB
/
testsettings.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
import django.conf.global_settings as DEFAULT_SETTINGS
import os
BASE_DIR = os.path.dirname(__file__)
SECRET_KEY = 'tsktsktsk'
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
},
}
TEMPLATE_CONTEXT_PROCESSORS = DEFAULT_SETTINGS.TEMPLATE_CONTEXT_PROCESSORS + (
'django.core.context_processors.request',
)
INSTALLED_APPS = (
# Default Django apps
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
# We test this one
'paiji2_utils',
)
ROOT_URLCONF = 'testurls'
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)
# html validation (django-html-validator)
HTMLVALIDATOR_ENABLED = True
HTMLVALIDATOR_FAILFAST = True
# HTMLVALIDATOR_VNU_URL = 'http://validator.nu/'
HTMLVALIDATOR_VNU_URL = 'https://validator.nu/'
# HTMLVALIDATOR_VNU_JAR = '~/dev/dist/vnu.jar'
HTMLVALIDATOR_DUMPDIR = os.path.join(BASE_DIR, 'validation_errors')
HTMLVALIDATOR_OUTPUT = 'file' # default is 'file'