[Solved] How can we use html for Django model form?


Yes, you can get a beautiful interface that way, just pass the name you use in the form.py

Example:

forms.py

class NameForm(forms.ModelForm):
    class Meta:
        model = MyModel
        fields = [
            "whatever"
        ]

Html Template

<form method="POST">{% csrf_token %}
    <input type="text" name="whatever" placeholder="Write whatever">
</form>

solved How can we use html for Django model form?