pip install sphinx
pip install sphinx-rtd-theme
# https://sphinx-themes.org/#themes
| { | |
| "terminal.integrated.env.windows": { | |
| "PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}" | |
| }, | |
| "terminal.integrated.env.linux": { | |
| "PYTHONPATH": "${workspaceFolder}${pathSeparator}${env:PYTHONPATH}" | |
| } | |
| } |
| <template> | |
| <div id="app"> | |
| <!-- <nav> | |
| <router-link to="/">Home</router-link> | | |
| <router-link to="/about">About</router-link> | |
| </nav> | |
| <router-view /> --> | |
| <div> | |
| <vxe-toolbar> | |
| <template #buttons> |
| { | |
| // * Place your global snippets here. | |
| // * docs: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-scope | |
| // region pre-define variables | |
| // * The following variables can be used: | |
| // TM_SELECTED_TEXT The currently selected text or the empty string | |
| // TM_CURRENT_LINE The contents of the current line |
Note: This guide has been updated for use with @vue/cli version 4! Please make sure you're using the latest version of @vue/cli.
When it comes to starting new Vue projects, you can't really beat Vue CLI. The Vue team has done a phenomenal job of making an easy-to-use tool for getting started with reasonable defaults. If you're using Django though, you may not have the easiest time getting its static system and webpack to play well together.
A good chunk of this is applicable to any webpack-compiled frontend and Django, but we'll focus specifically on the steps involved with Vue CLI.
As a quick heads up: this tutorial assumes you're creating your Vue project in a folder named frontend inside of your Django project folder. If you want it named something else, or want it in a different folder, just update the paths accordingly.
| version: "3.9" | |
| services: | |
| db: | |
| image: mysql:latest | |
| volumes: | |
| - db_data:/var/lib/mysql | |
| environment: | |
| MYSQL_ROOT_PASSWORD_FILE: /run/secrets/db_root_password | |
| MYSQL_DATABASE: wordpress |
| dn: cn=developer,dc=example,dc=org | |
| changetype: add | |
| objectclass: inetOrgPerson | |
| cn: developer | |
| givenname: developer | |
| sn: Developer | |
| displayname: Developer User | |
| mail: [email protected] | |
| userpassword: developer_pass |
- 在源代码中设置断点
- python 3.7 版本开始
breakpoint() - python 3.7 版本以前
import pdb; pdb.set_trace()import ipdb; ipdb.set_trace()
- python 3.7 版本开始
- 通过设置环境变量将
ipdb设置为默认 debuggerexport PYTHONBREAKPOINT=ipdb.set_trace - IPython interactive mode alias in .pdbrc