Skip to content

Commit

Permalink
Merge pull request #53 from wrabit/docs_update
Browse files Browse the repository at this point in the history
Minor cleanup
  • Loading branch information
wrabit authored Jul 11, 2024
2 parents 5436071 + 7eec95c commit 67529ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion django_cotton/templatetags/_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion docs/docs_project/docs_project/templates/configuration.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ <h1>Configuration</h1>

<p>The following configuration can be provided in your `settings.py`:</p>

<h2><c-highlight>COTTON_DIR</c-highlight>: str (default: 'cotton')</h2>
<h4>COTTON_DIR</h4>
<p>str (default: 'cotton')</p>

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

Expand Down

0 comments on commit 67529ee

Please sign in to comment.