Home
- Visual Studio Codeを起動する。
- File > Open Folderメニューを開く。
/home/rsl/webgame/を選択し、Openボタンをクリックする。
- 「Do you trust the authors of the files in this folder?」というメッセージが表示されたら、Yes, I trust the authorsボタンをクリックする。
- 左メニューからExtensionsアイコンをクリックする。
Pythonを選択し、Installボタンをクリックする。
- View > Command Paletteメニューを開く。
Python: select interpreterをクリックし、Python 3.**.** ('rsl-django')を選択する。
- 左メニューからRun and Debugアイコンをクリックする。
- create a launch.json fileをクリックする。
Pythonを選択する。
Djangoを選択する。
- 上メニューからStart Debuggingボタン(再生ボタン)をクリックする。
- ブラウザで
http://localhost:8000/にアクセスし、「The install worked successfully! Congratulations!」と表示されればOK。
参考
- Python and Django tutorial in Visual Studio Code
- Django を VSCode で 開発するまでの手順 - Qiita