-
Notifications
You must be signed in to change notification settings - Fork 5
/
settings.py
65 lines (53 loc) · 1.53 KB
/
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
"""
Test settings for the edx-django-release-util app.
"""
import warnings
from django.core.cache import CacheKeyWarning
from django.utils.crypto import get_random_string
DEBUG = True
TEMPLATE_DEBUG = DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': 'release_util_db.sqlite3',
'TEST': {
'NAME': 'release_util_test_db',
}
},
}
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'default_loc_mem',
},
}
ROOT_URLCONF = 'urls'
SITE_ID = 1
USE_TZ = True
SECRET_KEY = get_random_string(50, 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)')
# Silence cache key warnings
# https://docs.djangoproject.com/en/1.4/topics/cache/#cache-key-warnings
warnings.simplefilter("ignore", CacheKeyWarning)
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
# Release utilities
'release_util',
# For release_util testing only!
# Not to be added to INSTALLED_APPS otherwise.
'release_util.tests',
)
MIGRATION_MODULES = {
'release_util': 'release_util.tests.migrations.test_migrations'
}
MIDDLEWARE = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware'
)