12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import os
- import django
- from django.conf import global_settings
- BASE_DIR = os.path.dirname(os.path.dirname(__file__))
- SECRET_KEY = '!DJANGO_JET_TESTS!'
- DEBUG = True
- TEMPLATE_DEBUG = DEBUG
- DEBUG_PROPAGATE_EXCEPTIONS = True
- ROOT_URLCONF = 'jet.tests.urls'
- INSTALLED_APPS = (
- 'jet.dashboard',
- 'jet',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django.contrib.messages',
- 'django.contrib.admin',
- 'jet.tests',
- )
- MIDDLEWARE = 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',
- )
- if django.VERSION[:2] < (1, 9):
- TEMPLATE_CONTEXT_PROCESSORS = tuple(global_settings.TEMPLATE_CONTEXT_PROCESSORS) + (
- 'django.core.context_processors.request',
- )
- else:
- TEMPLATES = [
- {
- 'BACKEND': 'django.template.backends.django.DjangoTemplates',
- 'DIRS': [os.path.join(BASE_DIR, 'templates')],
- 'APP_DIRS': True,
- 'OPTIONS': {
- 'context_processors': (
- 'django.template.context_processors.debug',
- 'django.template.context_processors.request',
- 'django.contrib.auth.context_processors.auth',
- 'django.contrib.messages.context_processors.messages',
- )
- },
- },
- ]
- DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- }
- }
- TIME_ZONE = 'UTC'
- LANGUAGE_CODE = 'en-US'
- USE_I18N = True
- USE_L10N = True
- MEDIA_ROOT = ''
- MEDIA_URL = ''
- STATIC_URL = '/static/'
- JET_INDEX_DASHBOARD = 'jet.tests.dashboard.TestIndexDashboard'
- JET_APP_INDEX_DASHBOARD = 'jet.tests.dashboard.TestAppIndexDashboard'
|