diff options
author | ankitjavalkar | 2017-06-30 15:51:44 +0530 |
---|---|---|
committer | GitHub | 2017-06-30 15:51:44 +0530 |
commit | 358d6765add7a4be60971d72d62cc9bcf8db5948 (patch) | |
tree | 028fa9fed7d4d0972ac4cf92dea82b043e7e398e | |
parent | 96e9742536c7d840e5d1282f25ae9d2fac7f9f61 (diff) | |
download | learn_django-358d6765add7a4be60971d72d62cc9bcf8db5948.tar.gz learn_django-358d6765add7a4be60971d72d62cc9bcf8db5948.tar.bz2 learn_django-358d6765add7a4be60971d72d62cc9bcf8db5948.zip |
Initial slides added
-rw-r--r-- | tutorial_8_django_forms/slides.md | 33 |
1 files 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 <form>...</form> +- 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** |