summaryrefslogtreecommitdiff
path: root/tutorial_1_intro
diff options
context:
space:
mode:
authorKing2017-05-21 10:29:08 +0530
committerGitHub2017-05-21 10:29:08 +0530
commit6133a71a96b0965ca5d651123925e36a2e5d6150 (patch)
treebe5375a6116ba4f04ee6a1fd103b5c9b57016337 /tutorial_1_intro
parent67b632715a88556501c4d5fd39474124a409c067 (diff)
downloadlearn_django-6133a71a96b0965ca5d651123925e36a2e5d6150.tar.gz
learn_django-6133a71a96b0965ca5d651123925e36a2e5d6150.tar.bz2
learn_django-6133a71a96b0965ca5d651123925e36a2e5d6150.zip
Update slide_1.md
Diffstat (limited to 'tutorial_1_intro')
-rw-r--r--tutorial_1_intro/slide_1.md29
1 files changed, 23 insertions, 6 deletions
diff --git a/tutorial_1_intro/slide_1.md b/tutorial_1_intro/slide_1.md
index feead8d..75a5342 100644
--- a/tutorial_1_intro/slide_1.md
+++ b/tutorial_1_intro/slide_1.md
@@ -134,16 +134,33 @@ 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
- - Deactivate the environment
- - deactivate
- - You can also delete the virtual environment by deleting it's directory
- - *rm -rf myapp_env*
+
+Demonstration [ 02:00 | 07:40]
+---------------
+- Now we will run few commands to see how django works.
+- We will learn about them in later tutorials.
+- Type the following command:
+ - django-admin.py startproject demo-project
+- This creates a project directory with all necessory files.
+- cd demo-project
+- Now run:
+ - python manage.py runserver
+- This may give migrations warning at the start, we ignore them for now.
+- We see that the server is running now.
+- Go to the address shown mostly will be http://127.0.0.1:8000/
+- 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 | 05:55]
+Slide 13 [00:15 | 07:55]
---------------
** Assignment **
- Create a new virtual environment.
- Activate it.
- Install other version of django
- ** Followed by standard concluding slides ** [02:15 | 08:10]
+ ** Followed by standard concluding slides ** [00:30 | 08:25]