From 358d6765add7a4be60971d72d62cc9bcf8db5948 Mon Sep 17 00:00:00 2001 From: ankitjavalkar Date: Fri, 30 Jun 2017 15:51:44 +0530 Subject: Initial slides added --- tutorial_8_django_forms/slides.md | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/tutorial_8_django_forms/slides.md b/tutorial_8_django_forms/slides.md index aa275e9..c05ea41 100644 --- a/tutorial_8_django_forms/slides.md +++ b/tutorial_8_django_forms/slides.md @@ -20,18 +20,45 @@ Slide 3 [00:11 | 00:31] - Python 3.5 or higher version - python3.4-venv -Slide 4 +Slide 4: ---------------- -**Creating a Form** +**What is a Form?** +- In HTML, a form is a collection of elements inside
+- Allow a visitor to do things like; + - enter text + - select options + - manipulate objects or controls, and so on, +- Send information back to the server Slide 5 +---------------- + +**Django Forms** + +- Django provides inbuilt libraries to help you build forms easily + + +Slide 6 ----------------- **What is POST Request** -Slide 6 +- A form is what the user sees when the application is storing new *or* updating/deleting existing data on a server, +- In the backend this storage, updation or deletion is done using a POST request +- A POST request method requests that a web server accept the data enclosed in the body of the request message + +Slide 7 +---------------- + +**Creating a New Form** + +- Create a forms.py in the ```blog``` + + + +Slide 8 ---------------- **Adding a new view to handle the form** -- cgit