From 216f00ed3da64ae5a7e36859bef086a801409469 Mon Sep 17 00:00:00 2001 From: Will Abbott Date: Thu, 11 Jul 2024 11:50:40 +0100 Subject: [PATCH] removed debug print --- django_cotton/templatetags/_component.py | 1 - docs/docs_project/docs_project/templates/configuration.html | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django_cotton/templatetags/_component.py b/django_cotton/templatetags/_component.py index 34585d6..48cc15f 100644 --- a/django_cotton/templatetags/_component.py +++ b/django_cotton/templatetags/_component.py @@ -18,7 +18,6 @@ def get_cached_template(template_name): def render_template(template_name, context): if settings.DEBUG: - print("non cached") return get_template(template_name).render(context) else: return get_cached_template(template_name).render(context) diff --git a/docs/docs_project/docs_project/templates/configuration.html b/docs/docs_project/docs_project/templates/configuration.html index 9cab244..65ca00b 100644 --- a/docs/docs_project/docs_project/templates/configuration.html +++ b/docs/docs_project/docs_project/templates/configuration.html @@ -3,7 +3,8 @@

Configuration

The following configuration can be provided in your `settings.py`:

-

COTTON_DIR: str (default: 'cotton')

+

COTTON_DIR

+

str (default: 'cotton')

Change the default path in your templates directory where cotton components can be placed, for example "components".