Adding new comments
If all the comments were written by us, it would be a bit immoral. We’re going to incorporate a form so that anyone reading the article can leave a personal opinion. If you don’t like what they say, you can always "manage" it with Django’s admin panel. But for now, let’s not be tricky; let’s focus on the more technical side.
First, we add the following form in app/website/forms.py:
class CommentForm(forms.ModelForm):
    author = forms.CharField(
        widget=forms.TextInput(
            attrs={
                "id": "author",
                "class": "input",
      ...