در این آموزش تصویری با نحوه کار با فرم ها در Django آشنا می شوید.
این دوره آموزشی محصول موسسه TreeHouse است.

سرفصل های دوره:

  • نحوه ایجاد یک فرم
  • کار با Django
  • فرم ها در Django چه کاربردی دارند؟
  • نحوه نمایش یک فرم
  • نحوه اعتبار سنجی داده های فرم
  • کار با html
  • نحوه تعیین اهداف
  • نحوه حذف رشته ها
  • نحوه حذف و اضافه کردن داده ها به فرم
  • نحوه ویرایش فرم
  • نحوه تست فرم ها
  • و…

عنوان دوره: TreeHouse Django Forms
نویسنده: Kenneth Love


TreeHouse Django Forms

Kenneth Love

About this Course
Django Forms let us quickly create HTML forms and validate information from users and APIs. Django gives us two types of Forms, basic Forms and Model Forms, which turn our Models into Forms. Our learning app needs quizzes, so let's build them with Forms!
What you'll learn
Model Forms
Data validation
Model inheritance
Basic Forms in Django are handy for data validation and non-model-based data entry. They automatically create their own HTML and do some serious validation.
More on Models
To create our quizzes, we're going to need a few more models. And since a few of them share a lot of information and functionality, let's look into inheritance with multiple tables and abstract models.
7 steps
Model Forms
Quite often, we just want a form that represents a model in our app. Django gives us a great way to handle that scenario with Model Forms.
10 steps
Inlines and Media
Now that we have basic and model forms down, let's see how to use multiple forms, inline forms, and provide some special media to our forms.
7 steps

13 steps
What are Forms in Django?
Creating a Form
Create a Simple Form
4 objectives
Showing a Form in a View
Instantiate a Form in a View
3 objectives
Handling a Form in a View
Validate a Form in a View
2 objectives
Custom Field Validation
Clean a Field
2 objectives
Using and Creating Validators
Create a Validator
2 objectives
Cleaning a Whole Form
Clean Two Fields
1 objective