diff --git a/publichealth/home/templatetags/__init__.py b/publichealth/home/templatetags/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/publichealth/home/templatetags/navigation.py b/publichealth/home/templatetags/navigation.py index 1072742..40ce300 100644 --- a/publichealth/home/templatetags/navigation.py +++ b/publichealth/home/templatetags/navigation.py @@ -5,7 +5,7 @@ from django.utils import translation register = template.Library() # Language switcher -@register.inclusion_tag('home/templates/tags/language.html', takes_context=True) +@register.inclusion_tag('tags/language.html', takes_context=True) def language_switcher(context): return { 'languages': [ { 'code': 'de', 'title': 'De' }, { 'code': 'fr', 'title': 'Fr' } ], diff --git a/publichealth/settings/base.py b/publichealth/settings/base.py index ae871dd..cb68d62 100644 --- a/publichealth/settings/base.py +++ b/publichealth/settings/base.py @@ -25,6 +25,7 @@ BASE_DIR = os.path.dirname(PROJECT_DIR) INSTALLED_APPS = [ 'publichealth.home', + 'publichealth.home.templatetags', 'publichealth.search', 'wagtail.contrib.wagtailsearchpromotions',