Skip to content

Commit 22e5a6a

Browse files
authored
Merge pull request DjangoGirls#1593 from pqzx/issue-1592
Move note about activating virtual env into relevant section
2 parents 6c99cb6 + 2670b1b commit 22e5a6a

File tree

7 files changed

+49
-49
lines changed

7 files changed

+49
-49
lines changed

de/django_installation/instructions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ Starte deine virtuelle Umgebung, indem du Folgendes eingibst:
121121
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
122122
>
123123
124+
> **Hinweis:** Für Benutzerinnen des populären Editors VS Code, der einen Powershell-basiertes Terminal eingebaut hat: Wenn du beim eingebauten Terminal bleiben willst, kannst du deine virtuelle Umgebung mit folgendem Befehl aktivieren:
125+
>
126+
> $ . myvenv\Scripts\activate.ps1
127+
>
128+
>
129+
> Der Vorteil davon ist, dass du nicht zwischen den Editor-Fenstern und den Kommandozeilen-Fenstern wechseln musst
130+
124131
<!--endsec-->
125132

126133
<!--sec data-title="Working with virtualenv: Linux and OS X" data-id="virtualenv_linuxosx"
@@ -144,13 +151,6 @@ Der Name `myvenv` muss mit dem von Dir gewählten Namen des `virtualenv` überei
144151
145152
<!--endsec-->
146153

147-
> **Hinweis:** Für Benutzerinnen des populären Editors VS Code, der einen Powershell-basiertes Terminal eingebaut hat: Wenn du beim eingebauten Terminal bleiben willst, kannst du deine virtuelle Umgebung mit folgendem Befehl aktivieren:
148-
>
149-
> $ . myvenv\Scripts\activate.ps1
150-
>
151-
>
152-
> Der Vorteil davon ist, dass du nicht zwischen den Editor-Fenstern und den Kommandozeilen-Fenstern wechseln musst
153-
154154
Du erkennst, dass dein `virtualenv` gestartet ist, wenn du vor der Eingabeaufforderung eine Klammer mit dem Namen deiner Umgebung siehst, `(myvenv)`.
155155

156156
In deiner neuen virtuellen Umgebung wird automatisch die richtige Version von `python` verwendet. Du kannst also `python` statt `python3` eingeben.

en/django_installation/instructions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,13 @@ C:\Users\Name\djangogirls> myvenv\Scripts\activate
127127
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
128128
>```
129129
130+
> __NOTE:__ For users of the popular editor VS Code, which come with an integrated terminal based off windows powershell, if you wish to stick with the integrated terminal, you may run the following command to activate your virtual environment:
131+
>
132+
>```
133+
>$ . myvenv\Scripts\activate.ps1
134+
>```
135+
>The advantage is that you don't have to switch between editor windows and command-line windows
136+
130137
<!--endsec-->
131138
132139
<!--sec data-title="Working with virtualenv: Linux and OS X" data-id="virtualenv_linuxosx"
@@ -150,13 +157,6 @@ Remember to replace `myvenv` with your chosen `virtualenv` name!
150157
151158
<!--endsec-->
152159
153-
> __NOTE:__ For users of the popular editor VS Code, which come with an integrated terminal based off windows powershell, if you wish to stick with the integrated terminal, you may run the following command to activate your virtual environment:
154-
>
155-
>```
156-
>$ . myvenv\Scripts\activate.ps1
157-
>```
158-
>The advantage is that you don't have to switch between editor windows and command-line windows
159-
160160
You will know that you have `virtualenv` started when you see that the prompt in your console is prefixed with `(myvenv)`.
161161
162162
When working within a virtual environment, `python` will automatically refer to the correct version so you can use `python` instead of `python3`.

es/django_installation/instructions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ Inicia el entorno virtual ejecutando:
121121
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
122122
>
123123
124+
> **NOTA:** Para usuarios del popular editor VS Code, el cual viene con una terminal integrada basada en el poweshell de windows; si deseas añadir la terminal integrada, puedes arrancar el siguiente comando para activar tu entorno virtual:
125+
>
126+
> $ . myvenv\Scripts\activate.ps1
127+
>
128+
>
129+
> La ventaja es que no tienes que cambiar las ventanas entre el editor de código y la línea de comandos.
130+
124131
<!--endsec-->
125132

126133
<!--sec data-title="Working with virtualenv: Linux and OS X" data-id="virtualenv_linuxosx"
@@ -144,13 +151,6 @@ Inicia el entorno virtual ejecutando:
144151
145152
<!--endsec-->
146153

147-
> **NOTA:** Para usuarios del popular editor VS Code, el cual viene con una terminal integrada basada en el poweshell de windows; si deseas añadir la terminal integrada, puedes arrancar el siguiente comando para activar tu entorno virtual:
148-
>
149-
> $ . myvenv\Scripts\activate.ps1
150-
>
151-
>
152-
> La ventaja es que no tienes que cambiar las ventanas entre el editor de código y la línea de comandos.
153-
154154
Sabrás que tienes `virtualenv` iniciado cuando veas que la línea de comando en tu consola tiene el prefijo `(myvenv)`.
155155

156156
Cuando trabajes en un entorno virtual, `python` automáticamente se referirá a la versión correcta, de modo que puedes utilizar `python` en vez de `python3`.

fa/django_installation/instructions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ data-collapse=true ces-->
121121
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
122122
>
123123
124+
> **نکته:** برای کاربران ویرایشگر VS Code که درون خود یک ترمینال خط فرمان منطبق بر powershell ویندوز دارد، اگر بخواهید از این ترمینال استفاده کنید باید این دستور را برای فعال کردن محیط مجازی خود بزنید:
125+
>
126+
> $ . myvenv\Scripts\activate.ps1
127+
>
128+
>
129+
> فایده این کار این است که لازم نیست دائم بین پنجره ویرایشگر و پنجره خط فرمان جابجا شوید
130+
124131
<!--endsec-->
125132

126133
<!--sec data-title="Working with virtualenv: Linux and OS X" data-id="virtualenv_linuxosx"
@@ -144,13 +151,6 @@ data-collapse=true ces-->
144151
145152
<!--endsec-->
146153

147-
> **نکته:** برای کاربران ویرایشگر VS Code که درون خود یک ترمینال خط فرمان منطبق بر powershell ویندوز دارد، اگر بخواهید از این ترمینال استفاده کنید باید این دستور را برای فعال کردن محیط مجازی خود بزنید:
148-
>
149-
> $ . myvenv\Scripts\activate.ps1
150-
>
151-
>
152-
> فایده این کار این است که لازم نیست دائم بین پنجره ویرایشگر و پنجره خط فرمان جابجا شوید
153-
154154
هنگامی که پیشوند `(myvenv)` در کنسول خط فرمان اضافه شود به معنی آن است که `محیط مجازی` شما فعال شده است.
155155

156156
وقتی درون یک محیط مجازی کار می‌کنید کلمه `python` به صورت اتوماتیک به نسخه صحیح پایتون ارجاع می‌دهد در نتیجه می‌توانید به جای `python3` از `python` استفاده کنید.

fr/django_installation/instructions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,14 @@ Démarrez votre environnement virtuel en exécutant :
119119
> C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
120120
> Execution Policy Change
121121
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
122+
>
123+
124+
> **NOTE :** Pour les éditeurs du très populaire VS Code, qui comporte un terminal intégré basé sur Windows Powershell, si vous souhaitez conserver le terminal intégré, vous pouvez utiliser la commande suivante pour activer votre environnement virtuel :
125+
>
126+
> $ . myvenv\Scripts\activate.ps1
122127
>
128+
>
129+
> L'avantage, c'est que vous n'aurez pas à constamment passer de l'éditeur aux lignes de commandes
123130
124131
<!--endsec-->
125132

@@ -144,13 +151,6 @@ N'oubliez pas de remplacer `myvenv` par le nom que vous avez choisi pour votre `
144151
145152
<!--endsec-->
146153

147-
> **NOTE :** Pour les éditeurs du très populaire VS Code, qui comporte un terminal intégré basé sur Windows Powershell, si vous souhaitez conserver le terminal intégré, vous pouvez utiliser la commande suivante pour activer votre environnement virtuel :
148-
>
149-
> $ . myvenv\Scripts\activate.ps1
150-
>
151-
>
152-
> L'avantage, c'est que vous n'aurez pas à constamment passer de l'éditeur aux lignes de commandes
153-
154154
Vous saurez que votre `virtualenv` est lancé quand le prompt de votre console est précédé de `(myvenv)`.
155155

156156
Quand vous travaillez dans un environnement virtuel, la commande `python` fera automatiquement référence à la bonne version de Python. Vous pouvez donc utiliser `python` plutôt que `python3`.

ja/django_installation/instructions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ data-collapse=true ces-->
122122
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
123123
>
124124
125+
> **補足:** Windows Powershellベースの結合ターミナルがある人気なエディター「VS Code」を使っている方で、VS Codeの結合ターミナルを使いたい場合、仮想環境をアクティベートにするために下記のコマンドを実行してください:
126+
>
127+
> $ . myvenv\Scripts\activate.ps1
128+
>
129+
>
130+
> エディターとコマンドラインのウィンドウを行き来する必要がなくなるのが利点です。
131+
125132
<!--endsec-->
126133

127134
<!--sec data-title="Working with virtualenv: Linux and OS X" data-id="virtualenv_linuxosx"
@@ -145,13 +152,6 @@ data-collapse=true ces-->
145152
146153
<!--endsec-->
147154

148-
> **補足:** Windows Powershellベースの結合ターミナルがある人気なエディター「VS Code」を使っている方で、VS Codeの結合ターミナルを使いたい場合、仮想環境をアクティベートにするために下記のコマンドを実行してください:
149-
>
150-
> $ . myvenv\Scripts\activate.ps1
151-
>
152-
>
153-
> エディターとコマンドラインのウィンドウを行き来する必要がなくなるのが利点です。
154-
155155
`virtualenv` が起動すると、プロンプトの行頭に`(myvenv)`が現れます。
156156

157157
Virtual environment(仮想環境) の中で作業しているとき、`python`は自動的に正しいバージョンの`Python`を参照しますので、`python3`の代わりに`python`を使うことができます.

pt/django_installation/instructions.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,14 @@ Inicie o seu ambiente virtual executando:
119119
> C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
120120
> Execution Policy Change
121121
> The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose you to the security risks described in the about_Execution_Policies help topic at http://go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
122+
>
123+
124+
> **NOTA:** Para usuários do editor popular Código VS, que vem com um terminal baseado em janelas, se você deseja manter-se com o terminal integrado, você pode executar o seguinte comando para ativar seu ambiente virtual:
125+
>
126+
> $ . myvenv\Scripts\activate.ps1
122127
>
128+
>
129+
> A vantagem é que você não precisa alternar entre janelas do editor e janelas de linha de comando
123130
124131
<!--endsec-->
125132

@@ -144,13 +151,6 @@ Lembre-se de substituir `myvenv` pelo nome que você escolheu para o `virtualenv
144151
145152
<!--endsec-->
146153

147-
> **NOTA:** Para usuários do editor popular Código VS, que vem com um terminal baseado em janelas, se você deseja manter-se com o terminal integrado, você pode executar o seguinte comando para ativar seu ambiente virtual:
148-
>
149-
> $ . myvenv\Scripts\activate.ps1
150-
>
151-
>
152-
> A vantagem é que você não precisa alternar entre janelas do editor e janelas de linha de comando
153-
154154
Você vai saber que tem um `virtualenv` funcionando quando vir que a linha de comando no seu console tem o prefixo `(myvenv)`.
155155

156156
Ao trabalhar em de um ambiente virtual, o comando `python` irá automaticamente se referir à versão correta para que você possa digitar `python` em vez de `python3`.

0 commit comments

Comments
 (0)