Setting first day on HTMLCalendar

Setting first day on HTMLCalendar

I'd like to make Sunday the first day in my calendar, but I'm not sure how to. I know that calendar.setfirstweekday() is a method that can be used for calendars, but I don't know that it's available for HTMLCalendar.

I'd like to make Sunday the first day in my calendar, but I'm not sure how to. I know that calendar.setfirstweekday() is a method that can be used for calendars, but I don't know that it's available for HTMLCalendar.

utils.py

class Calendar(HTMLCalendar):
    def __init__(self, year=None, month=None, user=None):
        self.year = year    
        self.month = month
        self.user = user
        super(Calendar, self).__init__()

Views.py

class CalendarView(generic.ListView):
    model = Event
    template_name = 'accounts/calendar.html'

def get_context_data(self, **kwargs):
    context = super().get_context_data(**kwargs)        
    user = self.request.user

    cal = Calendar(d.year, d.month, user)

    html_cal = cal.formatmonth(withyear=True)

    context['calendar'] = mark_safe(html_cal)

    return context


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Python Django Tutorial | Django Course

🔥Intellipaat Django course: https://intellipaat.com/python-django-training/ 👉This Python Django tutorial will help you learn what is django web development &...

How to Build a Custom Django App

Learn how to build a custom Django app in one (1) hour. How to build a custom URL Shortening service. We will cover how to set up a virtual environment, set up dependencies and navigate through all the files in Django. Learn also how to use ORM and Querysets instead of SQL and use bootstrap with HTML forms in this interactive and educational video.

How to Integrate Django to any Javascript Front End // Django to React // Django to Angular

Learn the basic technique to Integrate Django to any Javascript Front End // Django to React // Django to Angular