summaryrefslogtreecommitdiff
path: root/tutorial_1_intro
diff options
context:
space:
mode:
authorKing2017-05-21 11:43:19 +0530
committerGitHub2017-05-21 11:43:19 +0530
commitda2d5f5df663992bba754a259145eeb5d04fea16 (patch)
tree6b2e3b7b02f793601b5a641f78cac8eb4edb8f2e /tutorial_1_intro
parent6133a71a96b0965ca5d651123925e36a2e5d6150 (diff)
downloadlearn_django-da2d5f5df663992bba754a259145eeb5d04fea16.tar.gz
learn_django-da2d5f5df663992bba754a259145eeb5d04fea16.tar.bz2
learn_django-da2d5f5df663992bba754a259145eeb5d04fea16.zip
updated outline for 75% demo
Diffstat (limited to 'tutorial_1_intro')
-rw-r--r--tutorial_1_intro/slide_1.md69
1 files changed, 24 insertions, 45 deletions
diff --git a/tutorial_1_intro/slide_1.md b/tutorial_1_intro/slide_1.md
index 75a5342..2932583 100644
--- a/tutorial_1_intro/slide_1.md
+++ b/tutorial_1_intro/slide_1.md
@@ -1,23 +1,23 @@
Tutorial 1: Introduction
=============================
+[Demonstration time: 6 mins (0.751 ~ 75%) | Total time: 8 mins 41 s]
+-------------
Slide 1 [00:08 | 00:08]
-------------
**Introduction to Django**
-Slide 2 [00:20 | 00:28]
+Slide 2 [00:09 | 00:17]
--------------
**Learning Objectives**
In this tutorial, we will learn about;
- - What is a web application
- - What is a web framework
- - Why use Django
+ - What is Django
- What is virtual environment
- Django installation
-Slide 3 [00:15 | 00:53]
+Slide 3 [00:11 | 00:28]
---------------
**System Requirements**
@@ -25,7 +25,7 @@ Slide 3 [00:15 | 00:53]
- Python 3.5 or higher version
- python3.4-venv (Install using *apt-get install python3.4-venv*)
-Slide 4 [00:12 | 01:05]
+Slide 4 [00:12 | 00:40]
---------------
**Pre-requisites**
@@ -34,7 +34,7 @@ In order to follow this tutorial, you need;
- Knowledge of Object Oriented Python Programming
- If not, see the Python tutorials on http://spoken-tutorial.org
-Slide 5 [00:10 | 01:15]
+Slide 5 [00:10 | 00:50]
----------------
**What is Django**
@@ -45,33 +45,8 @@ Slide 5 [00:10 | 01:15]
[Image of Django logo]
-Slide 6 [00:35 | 01:50]
-----------------
-**What is a web application**
-
-![Block diagram of Web application](https://raw.githubusercontent.com/FOSSEE/learn_django/master/tutorial_1_intro/webapp_diag.png 'Web Application Block diagram')
-** Narration for this slide **
- - An application stored on a remote computer i.e. server
- - A server can be accessed by a user through a web browser
- - The browser communicates with the server by sending a 'request'
- - The web application carries out actions as per the request
- - It has a 'database' to store and manipulate data
- - It sends a 'response' to the user
- - The user's browser then displays this response suitably formatted.
-
-Slide 7 [00:16 | 02:06]
-------------------
-
-**What is a web Framework**
- - Easy to develop web apps
- - Provides
- - Interface to Database
- - Authentication (Login system)
- - Templating engine (HTML rendering)
- - Forms
-
-Slide 8 [00:18 | 02:24]
+Slide 6 [00:13 | 01:03]
-------------------
**Why Django**
@@ -83,7 +58,7 @@ Slide 8 [00:18 | 02:24]
- provides a user interface for administrative activities
-Slide 9 [00:07 | 02:31]
+Slide 7 [00:06 | 01:09]
--------------
**Where is Django used**
@@ -91,7 +66,7 @@ Slide 9 [00:07 | 02:31]
- Pinterest - A social image and web resource sharing site
- [Add Screenshot]
-Slide 11 [00:05 | 02:36]
+Slide 8 [00:03 | 01:12]
--------------
**Where is Django used**
@@ -99,7 +74,7 @@ Slide 11 [00:05 | 02:36]
- Instagram - A social photo sharing site
- [Add Screenshot]
-Slide 12 [00:05 | 02:41]
+Slide 9 [00:03 | 01:15]
--------------
**Where is Django used**
@@ -107,7 +82,7 @@ Slide 12 [00:05 | 02:41]
- Disqus - A commenting system that can be integrated on any web page
- [Add Screenshot]
-Slide 13 [00:13 | 02:54]
+Slide 10 [00:12 | 01:27]
---------------
**What is virtual environment**
@@ -115,7 +90,7 @@ Slide 13 [00:13 | 02:54]
- Does not require root access
- Install Python packages from PyPI
-Demonstration [01:20 | 04:14]
+Demonstration [02:00 | 03:27]
----------------
**Working with virtual environments**
@@ -124,8 +99,10 @@ Demonstration [01:20 | 04:14]
- Activate the environment
- *source myapp_env/bin/activate*
- Shell prompt will be *(myapp_env)user1:~$*
-
-Demonstration [01:26 | 05:40]
+ - Deactivate the environment
+ - deactivate
+
+Demonstration [02:00 | 05:27]
---------------
**Install Django**
@@ -134,8 +111,12 @@ Demonstration [01:26 | 05:40]
- If not installed then we see "No module named django"
- pip install django
- Again we check and now we see the django version
+ - We can also update the django version in future
+ - pip install -U django
+ - For more help:
+ - pip --help or pip <command> --help
-Demonstration [ 02:00 | 07:40]
+Demonstration [ 02:30 | 07:57]
---------------
- Now we will run few commands to see how django works.
- We will learn about them in later tutorials.
@@ -151,16 +132,14 @@ Demonstration [ 02:00 | 07:40]
- So in a web browser we see the django index page.
- Go back to the terminal.
- We can quit the server with CONTROL-C
-- Deactivate the environment
- - deactivate
- You can also delete the virtual environment by deleting it's directory
- *rm -rf myapp_env*
-Slide 13 [00:15 | 07:55]
+Slide 11 [00:12 | 08:09]
---------------
** Assignment **
- Create a new virtual environment.
- Activate it.
- Install other version of django
- ** Followed by standard concluding slides ** [00:30 | 08:25]
+ ** Followed by standard concluding slides ** [00:30 | 08:39]