简体   繁体   中英

How to run django server on visual studio 2019?

I normally work with Pycharm or vs code to run my django project, but I heard the debugging on visual studio is better.

I openend the project on visual studio and set my environment and selected manage.py as startup file

I try to run it but I get this message on cmd:

在此处输入图片说明

After opening your project in Visual Studio Code, click terminal at the top and new terminal. when you see ready terminal at the button type: python manage.py runserver.

I did this:

1 - Set the manager.py as Startup Item

2 - Click on Debug and Launch Settings

3 - Click in Default on "Select a Debbuger"

4 - In the file Open put on file this: "scriptArguments": "runserver 0:80"

选择选项

设置参数

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM