This repository has been archived by the owner on Oct 16, 2018. It is now read-only.
/
test_settings.py
75 lines (61 loc) · 1.79 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
74
75
# We're still on Django 1.4 and use django-setuptest. Use this as a starting
# point for your test settings. Typically copy this file as test_settings.py
# and replace myapp with your app name.
from os.path import expanduser
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',
'NAME': 'jmbo',
'USER': 'postgres',
'PASSWORD': '',
'HOST': '',
'PORT': '',
}
}
INSTALLED_APPS = (
'music',
'gallery',
'jmbo',
'photologue',
'category',
'likes',
'secretballot',
'preferences',
'publisher',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.comments',
'django.contrib.contenttypes',
'django.contrib.sites',
'south',
)
ROOT_URLCONF = 'music.tests.urls'
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'likes.middleware.SecretBallotUserIpUseragentMiddleware',
)
TEMPLATE_CONTEXT_PROCESSORS = (
'django.contrib.auth.context_processors.auth',
'django.core.context_processors.debug',
'django.core.context_processors.i18n',
'django.core.context_processors.media',
'django.core.context_processors.static',
'django.core.context_processors.tz',
'django.core.context_processors.request',
'django.contrib.messages.context_processors.messages',
)
USE_TZ = True
SITE_ID = 1
STATIC_URL = '/static/'
STATIC_ROOT = 'static/'
CKEDITOR_UPLOAD_PATH = expanduser('~')
SOUTH_TESTS_MIGRATE = False
# Disable celery
CELERY_ALWAYS_EAGER = True
BROKER_BACKEND = 'memory'
JMBO_MUSIC = {}