You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/python/web-frameworks.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Take advantage of [IntelliSense](https://code.visualstudio.com/docs/editor/intel
44
44
45
45
Let's create a new project directory on our Linux (Ubuntu) file system that we will then work on with Linux apps and tools using VS Code.
46
46
47
-
1. Close VS Code and open Ubuntu 18.04 (your WSL command line) by going to your **Start** menu (lower left Windows icon) and typing: "Ubuntu 18.04".
47
+
1. Close VS Code and open Ubuntu (your WSL command line) by going to your **Start** menu (lower left Windows icon) and typing: "Ubuntu".
48
48
49
49
2. In your Ubuntu command line, navigate to where you want to put your project, and create a directory for it: `mkdir HelloWorld`.
50
50
@@ -55,7 +55,7 @@ Let's create a new project directory on our Linux (Ubuntu) file system that we w
55
55
56
56
## Install Python, pip, and venv
57
57
58
-
Ubuntu 18.04 LTS comes with Python 3.6 already installed, but it does not come with some of the modules that you may expect to get with other Python installations. We will still need to install **pip**, the standard package manager for Python, and **venv**, the standard module used to create and manage lightweight virtual environments. *Remember that you may need to update your Linux distribution so that it has the latest version using the command: `sudo apt update && sudo apt upgrade`.*
58
+
Ubuntu comes with Python 3.6 already installed, but it does not come with some of the modules that you may expect to get with other Python installations. We will still need to install **pip**, the standard package manager for Python, and **venv**, the standard module used to create and manage lightweight virtual environments. *Remember that you may need to update your Linux distribution so that it has the latest version using the command: `sudo apt update && sudo apt upgrade`.*
59
59
60
60
1. Confirm that Python3 is already installed by opening your Ubuntu terminal and entering: `python3 --version`. This should return your Python version number. If you need to update your version of Python, first update your Ubuntu version by entering: `sudo apt update && sudo apt upgrade`, then update Python using `sudo apt upgrade python3`.
61
61
@@ -82,13 +82,9 @@ VS Code uses the WSL Extension (installed previously) to treat your Linux subsys
82
82
83
83
1. Open your project folder in VS Code from your Ubuntu terminal by entering: `code .` (the "." tells VS Code to open the current folder).
84
84
85
-
2.A Security Alert will pop-up from Windows Defender, select "Allow access". Once VS Code opens, you should see the Remote Connection Host indicator, in the bottom-left corner, letting you know that you are editing on **WSL: Ubuntu-18.04**.
85
+
2.Close your Ubuntu terminal. Moving forward we will use the WSL terminal integrated into VS Code.
3. Close your Ubuntu terminal. Moving forward we will use the WSL terminal integrated into VS Code.
90
-
91
-
4. Open the WSL terminal in VS Code by pressing **Ctrl+`** (using the backtick character) or selecting **View** > **Terminal**. This will open a bash (WSL) command-line opened to the project folder path that you created in your Ubuntu terminal.
87
+
3. Open the WSL terminal in VS Code by pressing **Ctrl+`** (using the backtick character) or selecting **View** > **Terminal**. This will open a bash (WSL) command-line opened to the project folder path that you created in your Ubuntu terminal.
92
88
93
89

94
90
@@ -136,7 +132,7 @@ Congratulations. You're all set up to create and run Python programs! Now let's
136
132
137
133
Following the steps below, you can create a small "Hello World" Flask app using VS Code andWSL.
138
134
139
-
1. Open Ubuntu 18.04(your WSL command line) by going to your **Start** menu (lower left Windows icon) and typing: "Ubuntu 18.04".
135
+
1. Open Ubuntu (your WSL command line) by going to your **Start** menu (lower left Windows icon) and typing: "Ubuntu".
140
136
141
137
2. Create a directory for your project: `mkdir HelloWorld-Flask`, then `cd HelloWorld-Flask` to enter the directory.
142
138
@@ -214,7 +210,7 @@ Congratulations, you've created a Flask web application using Visual Studio Code
214
210
215
211
[Django](https://www.djangoproject.com) is a web application framework for Python. In this brief tutorial, you'll create a small "Hello World" Django app using VS Code and WSL.
216
212
217
-
1. Open Ubuntu 18.04(your WSL command line) by going to your **Start** menu (lower left Windows icon) and typing: "Ubuntu 18.04".
213
+
1. Open Ubuntu (your WSL command line) by going to your **Start** menu (lower left Windows icon) and typing: "Ubuntu".
218
214
219
215
2. Create a directory for your project: `mkdir HelloWorld-Django`, then `cd HelloWorld-Django` to enter the directory.
0 commit comments