|
@@ -68,6 +68,7 @@ ENVIRONMENT = os.environ.get("SENTRY_ENVIRONMENT", "production")
|
|
|
IS_DEV = ENVIRONMENT == "development"
|
|
|
|
|
|
DEBUG = IS_DEV
|
|
|
+TEMPLATE_DEBUG = True
|
|
|
MAINTENANCE = False
|
|
|
|
|
|
ADMINS = ()
|
|
@@ -249,6 +250,12 @@ USE_L10N = True
|
|
|
|
|
|
USE_TZ = True
|
|
|
|
|
|
+# List of callables that know how to import templates from various sources.
|
|
|
+TEMPLATE_LOADERS = (
|
|
|
+ "django.template.loaders.filesystem.Loader",
|
|
|
+ "django.template.loaders.app_directories.Loader",
|
|
|
+)
|
|
|
+
|
|
|
MIDDLEWARE_CLASSES = (
|
|
|
"sentry.middleware.proxy.ChunkedMiddleware",
|
|
|
"sentry.middleware.proxy.DecompressBodyMiddleware",
|
|
@@ -276,25 +283,23 @@ MIDDLEWARE_CLASSES = (
|
|
|
|
|
|
ROOT_URLCONF = "sentry.conf.urls"
|
|
|
|
|
|
-TEMPLATES = [
|
|
|
- {
|
|
|
- "BACKEND": "django.template.backends.django.DjangoTemplates",
|
|
|
- "DIRS": [os.path.join(PROJECT_ROOT, "templates")],
|
|
|
- "APP_DIRS": True,
|
|
|
- "OPTIONS": {
|
|
|
- "context_processors": [
|
|
|
- "django.contrib.auth.context_processors.auth",
|
|
|
- "django.contrib.messages.context_processors.messages",
|
|
|
- "django.template.context_processors.csrf",
|
|
|
- "django.template.context_processors.request",
|
|
|
- "social_auth.context_processors.social_auth_by_name_backends",
|
|
|
- "social_auth.context_processors.social_auth_backends",
|
|
|
- "social_auth.context_processors.social_auth_by_type_backends",
|
|
|
- "social_auth.context_processors.social_auth_login_redirect",
|
|
|
- ]
|
|
|
- },
|
|
|
- }
|
|
|
-]
|
|
|
+TEMPLATE_DIRS = (
|
|
|
+ # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
|
|
|
+ # Always use forward slashes, even on Windows.
|
|
|
+ # Don't forget to use absolute paths, not relative paths.
|
|
|
+ os.path.join(PROJECT_ROOT, "templates"),
|
|
|
+)
|
|
|
+
|
|
|
+TEMPLATE_CONTEXT_PROCESSORS = (
|
|
|
+ "django.contrib.auth.context_processors.auth",
|
|
|
+ "django.contrib.messages.context_processors.messages",
|
|
|
+ "django.core.context_processors.csrf",
|
|
|
+ "django.core.context_processors.request",
|
|
|
+ "social_auth.context_processors.social_auth_by_name_backends",
|
|
|
+ "social_auth.context_processors.social_auth_backends",
|
|
|
+ "social_auth.context_processors.social_auth_by_type_backends",
|
|
|
+ "social_auth.context_processors.social_auth_login_redirect",
|
|
|
+)
|
|
|
|
|
|
INSTALLED_APPS = (
|
|
|
"django.contrib.admin",
|