In my django app I want to set focus to the first CharField (task) when the page loads. my models.py is and forms.py is I have tried adding the following widget in my CharField (in models.py): but it gives an AttributeError: module ‘django.db.models’ has no attribute ‘TextInput’ I have also tried adding the following to the ListForm class (in forms.py):