mirror of
https://github.com/django-components/django-components.git
synced 2025-09-04 05:00:32 +00:00

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
9 lines
401 B
Python
9 lines
401 B
Python
from django_components import Component, register
|
|
|
|
|
|
@register("todo")
|
|
class Calendar(Component):
|
|
# Note that Django will look for templates inside `[your apps]/components` dir and
|
|
# `[project root]/components` dir. To customize which template to use based on context
|
|
# you can override def get_template_name() instead of specifying the below variable.
|
|
template_name = "todo/todo.html"
|