summaryrefslogtreecommitdiff
path: root/tutorial_2_django_proj
diff options
context:
space:
mode:
authorKing2017-05-21 12:44:52 +0530
committerGitHub2017-05-21 12:44:52 +0530
commit48a01c9337509d6788b0554e2e322b00cecf536e (patch)
treeef60a9ab8e94e08e12d67567dbfe2aa35e1044b1 /tutorial_2_django_proj
parent8f9ea60b399fe99ab6cc9123365dd4a2e1ce7a0d (diff)
downloadlearn_django-48a01c9337509d6788b0554e2e322b00cecf536e.tar.gz
learn_django-48a01c9337509d6788b0554e2e322b00cecf536e.tar.bz2
learn_django-48a01c9337509d6788b0554e2e322b00cecf536e.zip
updated time to display demo time
Diffstat (limited to 'tutorial_2_django_proj')
-rw-r--r--tutorial_2_django_proj/slides.md37
1 files changed, 19 insertions, 18 deletions
diff --git a/tutorial_2_django_proj/slides.md b/tutorial_2_django_proj/slides.md
index ea53625..62b57c6 100644
--- a/tutorial_2_django_proj/slides.md
+++ b/tutorial_2_django_proj/slides.md
@@ -1,11 +1,13 @@
Tutorial: Creating Your First Django Project
=====================================
+[Demonstration time: 7 mins 30 secs (0.812 ~ 81%) | Total time: 9 mins 11 s]
+-------------
Slide 1 [00:08 | 00:08]
-------------
Title Slide: ** Creating a Django Project **
-Slide 2 [00:13 | 00:21]
+Slide 2 [00:12 | 00:20]
--------------
**Learning Objectives**
@@ -14,7 +16,7 @@ In this tutorial, we will learn to;
- Create a django project
- Initialize a django app
-Slide 3 [00:13 | 00:34]
+Slide 3 [00:11 | 00:31]
---------------
**System Requirements**
@@ -22,7 +24,7 @@ Slide 3 [00:13 | 00:34]
- Python 3.5 or higher version
- python3.4-venv
-Slide 4 [00:15 | 00:49]
+Slide 4 [00:15 | 00:46]
---------------
**Pre-requisites**
@@ -32,7 +34,7 @@ In order to follow this tutorial, you need to know;
- how to install django
- If not, see the relevant django tutorial on http://spoken-tutorial.org
-Demonstration: [01:15 | 2:04]
+Demonstration: [01:30 | 2:16]
------------
- Revisit the virtual environment created in previous tutorial.
- Activate the virtual environment
@@ -44,18 +46,18 @@ Demonstration: [01:15 | 2:04]
- *django-admin startproject mysite*
- This will create a django project 'mysite'
-Demonstration: [01:00 | 3:04]
+Demonstration: [02:00 | 4:16]
-------------
- So django project is
- collection of settings for an instance of Django
- Includes;
- - database configuration
+ - database configuration(will be seen after we run the server for the first time)
- Django-specific options
- Application-specific settings
- **(Not for narration) Note: For this demonstration we can navigate through project files **
+ **(Not for narration) Note: For this demonstration we can navigate through project files and explain them **
-Slide 5: [00:10 | 3:14]
+Slide 5: [00:05 | 04:21]
-------------
- You will see such a File structure
@@ -67,22 +69,23 @@ Slide 5: [00:10 | 3:14]
|-> urls.py
`-> wsgi.py
-Demonstration [01:00 | 4:14]
+Demonstration [01:30 | 05:51]
---------------
- Now let us run the django server and check;
- *python manage.py runserver*
- You will see that the server is running at the address shown.
- Go to the address via web browser
- We see the django's index page- "It works"
+ - Here we can see the command to create an app in django.
-Slide
+Slide [00:10 | 06:01]
-----------
**Initializing a Django App**
- A Django project typically contains one or more apps
- A Django app performs a particular task
- Let us create a blogging app called 'blog'
-Demonstration [01:30 | 5:44]
+Demonstration [01:30 | 07:31]
--------------
- Run the command;
- *python manage.py startapp blog*
@@ -105,7 +108,7 @@ Demonstration [01:30 | 5:44]
- Return to the parent directory
- *cd ..*
-Demonstration [01:00 | 6:44]
+Demonstration [01:00 | 08:31]
------------
** Adding the app to the settings file**
- For the project to detect an app, we need to add the app name to settings.py
@@ -121,13 +124,11 @@ Demonstration [01:00 | 6:44]
'django.contrib.messages',
'django.contrib.staticfiles',
]
- - To stop the server,
- - goto the directory where we had run the command python manage.py runserver.
- - press CRTL and C keys simultaneously.
-
-Slide 13 [00:25 | 07:15]
+ - So now our app will be recognized by our project.
+
+Slide 13 [00:10 | 08:41]
---------------
** Assignment **
- Create a new project and app
- ** Followed by standard concluding slides ** [02:15 | 08:10]
+ ** Followed by standard concluding slides ** [00:30 | 09:11]