Thursday, May 20, 2021

How to Create Django Forms

 How to Create Django Forms


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!

Previous Post
Next Post

0 Comments: