what widget we give to URLField in forms django i wanna set placeholer and some class to input
link = forms.URLField(widget=forms.????)
CodePudding user response:
As the documentation on a URLField says [Django-doc]:
- Default widget:
URLInput
You thus can use a URLInput widget [Django-doc] for that:
link = forms.URLField(widget=forms.URLInput()) 