set lable of field django

from django import forms

class MyForm(forms.Form): my_field = forms.CharField(label='Enter your name', max_length=100)

Explanation: 1. We import the "forms" module from Django. 2. We create a class called "MyForm" that inherits from "forms.Form". 3. Inside the form class, we define a field called "my_field" using "forms.CharField". 4. We set the label of the field to 'Enter your name' using the "label" parameter. 5. Additionally, we set the maximum length of the input to 100 using the "max_length" parameter.