How to Create Django Forms
Django forms is a collection of html elements.html forms help to reduce html codes and user friendliness.
Forms contain lot of elements.User can create default django forms.
Go to the Django app create forms.py
from django import forms class NameForm(forms.Form): Name = forms.CharField(label='Enter your Name', max_length=100)
First you need to import forms funtion.Then "NameForm" is your choose name.That just a example.
Thank you. Happy Coding!
More Blogs
Follow up for More Contents
0 Comments: