参考:
http://www.cnblogs.com/Dy1an/p/10130518.html
pycharm感觉不太友好, 之前用过vscode感觉很好用, 还是用vscode吧.
点击左下角, 找到chinese插件, 安装, 然后重启即可.
点开新建终端, 类似cmd的窗口, 风格有点像linux, 用着比较方便.
django-admin startproject testapp
cd testapp/
cd testapp/
结果如下:
$ python manage.py runserver 88
Performing system checks...
System check identified no issues (0 silenced).
You have 15 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
December 17, 2018 - 14:20:38
Django version 2.1.4, using settings 'testapp.settings'
Starting development server at http://127.0.0.1:88/
Quit the server with CTRL-BREAK.
http://127.0.0.1:88/
Material Icon Theme
Son of Obsidian Theme
然后点击右下角的设置按钮, 选择: 文件图标主题设置.
选择主题即可.
{
"editor.fontSize": 16,
"explorer.confirmDragAndDrop": false,
"extensions.autoUpdate": false,
"workbench.colorTheme": "Son of Obsidian",
"editor.fontFamily": "Consolas, Dengxian",
"workbench.sideBar.location": "left",
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "material-icon-theme",
}
设置即可.
可以看到, 文件project中, 文件和文件夹都有了自己的图标, 很友好.
在langsh中, 找到runserver, 设置端口:8080
如果python没有路径的设置, 可以点击:
wonderfully