Component Naming and Placement Basics
mainDjango Cotton uses a specific convention for locating and calling components:
- Placement: By default, components must be placed in the
templates/cottondirectory of your Django project. - Calling Components: Use kebab-case prefixed with
c-in your templates (e.g.,<c-my-component />). - Filenames: Component files should use
snake_case(e.g.,my_component.html).
You can configure custom folders or filename patterns in your settings.