What do you want to save?
Add Code snippet
New code examples
-
Python 2021-10-02 08:32:05
django start python function when pressing button
index.html <form method="post"> {% csrf_token %} <button type="submit" name="run_script">Run script</button> </form> views.py if request.method == 'POST' and 'run_script' in request.POST: ... Add solution -
Other 2021-09-27 09:36:04
JSON Schema Verify/AJV
// or ESM/TypeScript import import Ajv from "ajv" // Node.js require: const Ajv = require("ajv") const ajv = new Ajv() // options can be passed, e.g. {allErrors: true} const schema = { type: "object", properties: { ... Add solution