-
-
Notifications
You must be signed in to change notification settings - Fork 56
/
testsettings.py
63 lines (50 loc) · 1.59 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
57
58
59
60
61
62
63
import django
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ROOT_URLCONF = "planet.urls"
TIME_ZONE = 'UTC'
LANGUAGE_COOKIE_NAME = "planetlng"
SESSION_COOKIE_NAME = "planetid"
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
},
}
INSTALLED_APPS = [
'django.contrib.sites',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.staticfiles',
'tagging',
'pagination',
'planet',
]
SECRET_KEY = 'abcde12345'
SITE_ID = 1
if django.VERSION[:2] < (1, 6):
# Since 1.6 version Django comes with discover_runner builtin!
INSTALLED_APPS += ('discover_runner', 'south')
TEST_RUNNER = 'discover_runner.DiscoverRunner'
TEMPLATE_CONTEXT_PROCESSORS = (
"django.contrib.auth.context_processors.auth",
"django.core.context_processors.debug",
"django.core.context_processors.media",
'django.core.context_processors.static',
"django.core.context_processors.request",
"django.core.context_processors.i18n",
"django.contrib.messages.context_processors.messages",
"planet.context_processors.context"
)
MIDDLEWARE_CLASSES = (
'django.middleware.gzip.GZipMiddleware',
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'pagination.middleware.PaginationMiddleware',
)
STATIC_URL = '/static/'
PLANET = {"USER_AGENT": "django-planet/0.1"}