Use global context for db_size and amount_of_feeds

This commit is contained in:
Joakim Hellsén 2024-02-23 06:35:31 +01:00
commit 61b9db1333
3 changed files with 28 additions and 30 deletions

View file

@ -40,21 +40,6 @@ MIDDLEWARE = [
ROOT_URLCONF = "feedvault.urls"
TEMPLATES = [
{
"BACKEND": "django.template.backends.django.DjangoTemplates",
"DIRS": [],
"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",
],
},
},
]
WSGI_APPLICATION = "feedvault.wsgi.application"
@ -103,6 +88,7 @@ TEMPLATES = [
"django.template.context_processors.request",
"django.contrib.auth.context_processors.auth",
"django.contrib.messages.context_processors.messages",
"feeds.context_processors.add_global_context",
],
"loaders": [
(