django-components/sampleproject/components/todo/todo.py
adriaan 6f49339c91
fix/263 performance regression (#264)
* Replace deep copies in Component.render
* Add 2nd example component to sampleproject
2023-04-13 14:20:43 +02:00

9 lines
411 B
Python

from django_components import component
@component.register("todo")
class Calendar(component.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"