Browse Source

FAQ

pull/164/head
Jure Šorn 1 year ago
parent
commit
ab14d49924
2 changed files with 4 additions and 12 deletions
  1. 4
      index.html
  2. 12
      web/faq.html

4
index.html

@ -54,7 +54,7 @@
<body>
<header>
<aside>August 3, 2023</aside>
<aside>August 4, 2023</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</header>
@ -2930,7 +2930,7 @@ $ deactivate <span class="hljs-comment"># Deactivates virtual e
<footer>
<aside>August 3, 2023</aside>
<aside>August 4, 2023</aside>
<a href="https://gto76.github.io" rel="author">Jure Šorn</a>
</footer>

12
web/faq.html

@ -36,16 +36,8 @@
&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 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 open><summary><strong>Why are tests not covered?</strong></summary><br>
&nbsp;&nbsp;&nbsp;&nbsp;Check out <a href="https://docs.python-guide.org/writing/tests/">The Hitchhiker’s Guide to Python</a> for a nice overview.
</details><br>
<details open><summary><strong>Django?</strong></summary><br>

Loading…
Cancel
Save