Browse Source

Updated faq.html

pull/115/head
Jure Šorn 3 years ago
parent
commit
65a7b69f0f
1 changed files with 11 additions and 3 deletions
  1. 14
      web/faq.html

14
web/faq.html

@ -1,5 +1,5 @@
<details open><summary><strong>Python 2 or Python 3?</strong></summary><br>
&nbsp;&nbsp;&nbsp;&nbsp;Python 3.7
&nbsp;&nbsp;&nbsp;&nbsp;Python 3.7 (or higher).
</details><br>
<details open><summary><strong>What is the best way to use it?</strong></summary><br>
@ -36,8 +36,16 @@
&nbsp;&nbsp;&nbsp;&nbsp;This way classes can be copy-pasted into the Python console, which would otherwise raise IndentationError.
</details><br>
<details open><summary><strong>Why are import statements, virtual environments and tests not covered?</strong></summary><br>
&nbsp;&nbsp;&nbsp;&nbsp;Check out <a href="https://docs.python-guide.org/">The Hitchhiker’s Guide to Python</a> for a nice overview of the mentioned topics.
<details open><summary><strong>Why are virtual environments and tests not covered?</strong></summary><br>
&nbsp;&nbsp;&nbsp;&nbsp;Check out <a href="https://docs.python-guide.org/">The Hitchhiker’s Guide to Python</a> for a nice overview of the mentioned topics.<br><br>
&nbsp;&nbsp;&nbsp;&nbsp;A quick overview of virtual environments in Unix:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>python3 -m venv env&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Creates virtual environment in current directory.</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>source env/bin/activate&nbsp;&nbsp;# Activates virtual environment.</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>deactivate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Deactivates virtual environment.</code><br><br>
&nbsp;&nbsp;&nbsp;&nbsp;And Windows:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>py -m venv env&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Creates virtual environment in current directory.</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>.\env\Scripts\activate&nbsp;&nbsp;&nbsp;# Activates virtual environment.</code><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<code>deactivate&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;# Deactivates virtual environment.</code><br><br>
</details><br>
<details open><summary><strong>Why are Flask and Django not covered?</strong></summary><br>

Loading…
Cancel
Save