django-select2/tests/testapp/settings.py

64 lines
1.3 KiB
Python
Raw Normal View History

2015-03-03 09:01:51 +00:00
import os.path
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
2015-09-06 03:23:24 +00:00
DEBUG = True
2015-03-03 09:01:51 +00:00
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
2015-09-16 09:02:44 +00:00
'NAME': ':memory:',
2015-03-03 09:01:51 +00:00
}
}
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.staticfiles',
'django_select2',
'tests.testapp',
)
2017-11-25 16:23:36 +00:00
MIDDLEWARE = (
2015-03-03 09:01:51 +00:00
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
)
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
SITE_ID = 1
ROOT_URLCONF = 'tests.testapp.urls'
2017-07-16 09:19:54 +00:00
LANGUAGES = [
('de', 'German'),
('en', 'English'),
]
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'APP_DIRS': True,
'DIRS': ['templates'],
},
]
2015-03-03 09:01:51 +00:00
SECRET_KEY = '123456'
USE_L10N = True
2017-07-16 09:19:54 +00:00
USE_I18N = True
2015-03-03 09:01:51 +00:00
if os.environ.get('TRAVIS'):
CACHES = {
"default": {
"BACKEND": "django_redis.cache.RedisCache",
"LOCATION": "redis://127.0.0.1:6379/1",
"OPTIONS": {
"CLIENT_CLASS": "django_redis.client.DefaultClient",
}
}
}