Home > Software engineering >  what widget we give to URLFIELD in django
what widget we give to URLFIELD in django

Time:01-27

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]:

You thus can use a URLInput widget [Django-doc] for that:

link = forms.URLField(widget=forms.URLInput())
  •  Tags:  
  • Related