示例#1
0
def test_app_discovery_finds_catcomments():
    assert "powerapp.contrib.catcomments" in app_discovery()
示例#2
0
SECURE_PROXY_SSL_HEADER = env('SECURE_PROXY_SSL_HEADER')

# Application definition
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_statsd',
    'djcelery',
    'powerapp.core',
    'powerapp.sync_bridge',
    'raven.contrib.django.raven_compat',
] + app_discovery()

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
    'django_statsd.middleware.GraphiteMiddleware',
    'powerapp.core.logging_utils.RequestContextMiddleware',
    'powerapp.core.statsd_middleware.GrafanaRequestTimingMiddleware',
)
示例#3
0
def test_app_discovery_finds_catcomments():
    assert 'powerapp.contrib.catcomments' in app_discovery()
示例#4
0
SECURE_PROXY_SSL_HEADER = env('SECURE_PROXY_SSL_HEADER')

# Application definition
INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    'django_statsd',
    'djcelery',
    'powerapp.core',
    'powerapp.sync_bridge',
    'raven.contrib.django.raven_compat',
] + app_discovery()

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.middleware.csrf.CsrfViewMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
    'django.contrib.messages.middleware.MessageMiddleware',
    'django.middleware.clickjacking.XFrameOptionsMiddleware',
    'django.middleware.security.SecurityMiddleware',
    'django_statsd.middleware.GraphiteMiddleware',
    'powerapp.core.logging_utils.RequestContextMiddleware',
    'powerapp.core.statsd_middleware.GrafanaRequestTimingMiddleware',
)