URLField() in Django
- A URLField is a field of a database table or a form which stores only URLs.
- This field is generally used for storing webpage links called as URLs.
- It is validated by URLValidator.
- To store larger text, TextField is used. The default form widget for this field is TextInput.
Syntax:
field_name = models.URLField(max_length=250, **options)
Comments
Post a Comment