Calendar View

Month/week/day calendar view with event slots.

python 8 params

Preview

January 2026
Mon
Tue
Wed
Thu
Fri
Sat
Sun
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

Usage

views.py
python
from djust import LiveView
from djust.components import CalendarView


class MyView(LiveView):
    template_name = "my_template.html"

    def mount(self, request, **kwargs):
        self.component = CalendarView()
my_template.html
django
{{ component }}

Parameters

NameTypeDefault
eventslist | NoneNone
monthint1
yearint2026
viewstr'month'
start_dayint0
eventstr — renames the event; identity is `name`''
custom_classstr''
**kwargs— passed to `Component.__init__`: `name=` identifies the instance in the events it sends, `id=` sets `component.id`, and any other keyword is kept as state
Source & styles
FilePathNotes
moduledjust.components.components.calendar_viewSubclass it, or pass custom_class, to change how it renders.
cssdjust_components/components.cssDefines 10 of this component's classes at line 2155, 2156, 2157, 2158, 2159, 2160, 2162, 2163, 2423, 2424. Override those rules, or the custom properties they read, in a stylesheet loaded after it.