summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2017-05-18 11:41:19 +0530
committerGitHub2017-05-18 11:41:19 +0530
commit26a3534e55c7fa4ce1c541cb8b72408baf3a2a02 (patch)
tree796fb5324231bf2d816fb4932d4034e429a6c248
parent9a53c75846019299ff42207f1788f12c42f73b6f (diff)
downloadlearn_django-26a3534e55c7fa4ce1c541cb8b72408baf3a2a02.tar.gz
learn_django-26a3534e55c7fa4ce1c541cb8b72408baf3a2a02.tar.bz2
learn_django-26a3534e55c7fa4ce1c541cb8b72408baf3a2a02.zip
Update slides with 'working with venv' section
-rw-r--r--tutorial_2_installation/slides.md41
1 files changed, 34 insertions, 7 deletions
diff --git a/tutorial_2_installation/slides.md b/tutorial_2_installation/slides.md
index d169256..874204c 100644
--- a/tutorial_2_installation/slides.md
+++ b/tutorial_2_installation/slides.md
@@ -6,19 +6,46 @@ Slide 1
**System Requirements:**
- Python 3
- - python3-venv (Install using *apt-get install python3-venv*)
- - Ubuntu 14.04
+ - python3.4-venv (Install using *apt-get install python3.4-venv*)
+ - Ubuntu 16.10
Slide 2
---------------
-**Creating a virtual environment**
- - What is a virtual environment
+**What is virtual environment**
+ - Install Python packages from PyPI
+ - Does not require root access
+ - Create 'isolated' environment
+
+Slide 3
+----------------
+
+**Working with virtual environments**
+ - Create a virtual environment
+ - python -m venv /path-to-env/directory_name
+ - Activate the environment
+ - source /path-to-env/bin/activate
+ - Deactivate the environment
+ - deactivate
+ - Delete the environment and related packages
+ - Delete the environment directory
+
+
+Slide 4
+---------------
+
+**Create a virtual environment**
- Creating a virtual environment in Python 3
- - *python3 -m venv /<path-to-project-dir>/learn_django*
- - Shell prompt will be *(learn_django)user1:~$*
+ - *python3 -m venv /path-to-env/myapp_env*
+
+Slide 5
+----------------
-Slide 3
+**Activate the virtual environment**
+ - *source /path-to-env/myapp_env*
+ - Shell prompt will be *(myapp_env)user1:~$*
+
+Slide 5
---------------
**Install Django**