Calendar disable specific days

I have a project in django that includes booking a service (or a class, a tour, etc), which is offered on fixed days, like on Mondays. I have a calendar to book the service but I want to disable any other weekday to avoid wrong bookings.
At the moment, I manage checking the requested day against the day defined for the event and if they agree, the booking is saved. Otherwise, a warning message reported an error with the selected day. However, it does not feel professional and I am sure there is a way to set up a calendar with disabled days. I learnt that there is Datepciker based on Java, but I wonder if there is a Django application for that. Thank you in advance

A date picker is going to be a front-end thing, using JavaScript, and is unlikely to be a Django application. For example, you might have a DateInput() field and then using a JavaScript datepicker, you could add pop-up datepicker to the <input>.

But this wouldn’t solve your actual problem, of how to prevent booking on unavailable dates. Without seeing any code it’s impossible to give precise advice. Simply, the choice of dates you offer to the user should omit the unavailable dates. You would do this in your view, providing the data to the template.

Hi, thank you for considering the problem. Below, I add the code for models and form of a project aimed to make booking on specific weekdays.
Do you say that it is possible to pass to the template, not the whole calendar, as in the image, but specific weekdays?

Calendario

model.py

class Clase(models.Model):
    DAYS_OF_THE_WEEK={
        "0": "MONDAY",
        "1": "TUESDAY",
        "2": "WEDNESDAY",
        "3": "THURSDAY",
        "4": "FRIDAY",
        "5": "SATURDAY",
        "6": "SUNDAY",
    }
    name=models.CharField(max_length=30)  
    day=models.CharField(max_length = 20,choices = DAYS_OF_THE_WEEK,default = 'MON')
    capacity=models.IntegerField(default=15)
  
class Booking(models.Model):
   user= models.ForeignKey(User, on_delete=models.CASCADE, related_name='users',null=True, blank=True)
   name = models.ForeignKey(Clase, on_delete=models.CASCADE,related_name='clases')
   booking_date = models.DateField(null=True, blank=True)
   

forms.py

class Booking_Form(forms.ModelForm):
    class Meta:
        model = Booking
        fields = [
            'name',
            'booking_date',
            ]
        labels={
            'name': '',
            'booking_date':'',
            }
        widgets={
            'name': forms.Select(choices=Reservar_Clase.nombre),
            'booking_date': forms.DateInput(format='%Y/%m/%d'),
            }     

Hi, I’m having the same issue… did you solve it?