This commit is contained in:
Will Abbott 2024-08-12 09:37:23 +01:00
parent 2126b2ffed
commit 893f166a0d
2 changed files with 10 additions and 5 deletions

View file

@ -28,10 +28,15 @@ settings.configure(
"django.contrib.messages.context_processors.messages",
],
"loaders": [
(
"django.template.loaders.cached.Loader",
[
"django_cotton.cotton_loader.Loader",
"django.template.loaders.filesystem.Loader",
"django.template.loaders.app_directories.Loader",
],
)
],
"builtins": [
"django.templatetags.static",
"django_cotton.templatetags.cotton",

View file

@ -4,8 +4,8 @@ from functools import lru_cache
from django import template
from django.conf import settings
from django.template import Node
from django.template.loader import get_template
from django.utils.safestring import mark_safe
from django.template.loader import get_template
from django_cotton.utils import ensure_quoted
@ -141,7 +141,7 @@ class CottonComponentNode(Node):
else:
return CottonIncompleteDynamicComponentException(
'Cotton error: "<c-component>" should be accompanied by a "is" attribute.'
'Cotton error: "<c-component>" should be accompanied by an "is" attribute.'
)
else:
component_path = self.component_path