from django import forms
from .validators import validate_url

class ShortnerForm(forms.Form):
    url = forms.CharField(max_length=225,
                            validators=[validate_url],
                            widget=forms.TextInput(attrs={
                                'class': 'form-control form-control-lg',
                                'label': '',
                                'placeholder': 'Enter a URL ...'
                            }))
from django import forms
from .validators import validate_url

class ShortnerForm(forms.Form):
    url = forms.CharField(max_length=225,
                            validators=[validate_url],
                            widget=forms.TextInput(attrs={
                                'class': 'form-control form-control-lg',
                                'label': '',
                                'placeholder': 'Enter a URL ...'
                            }))