From 65a7b69f0f9809f97fdee1a6ea64aa3e82ab2a06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 16 Nov 2021 13:19:01 +0100 Subject: [PATCH] Updated faq.html --- web/faq.html | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/web/faq.html b/web/faq.html index 1c659c3..6cff9cb 100644 --- a/web/faq.html +++ b/web/faq.html @@ -1,5 +1,5 @@
Python 2 or Python 3?
-    Python 3.7 +    Python 3.7 (or higher).

What is the best way to use it?
@@ -36,8 +36,16 @@     This way classes can be copy-pasted into the Python console, which would otherwise raise IndentationError.

-
Why are import statements, virtual environments and tests not covered?
-    Check out The Hitchhiker’s Guide to Python for a nice overview of the mentioned topics. +
Why are virtual environments and tests not covered?
+    Check out The Hitchhiker’s Guide to Python for a nice overview of the mentioned topics.

+    A quick overview of virtual environments in Unix:
+        python3 -m venv env      # Creates virtual environment in current directory.
+        source env/bin/activate  # Activates virtual environment.
+        deactivate               # Deactivates virtual environment.

+    And Windows:
+        py -m venv env           # Creates virtual environment in current directory.
+        .\env\Scripts\activate   # Activates virtual environment.
+        deactivate               # Deactivates virtual environment.


Why are Flask and Django not covered?