我有用Flask编写的小代码,当我试图运行服务器并输入登录和密码时,它会给我一个错误: werkzeug.routing.BuildError:未能为端点“user_page”构建url。您忘记指定值'name‘了吗? return f"Sorry, you enter wrong username/password"
@app.route('/login&
我知道我可以通过在帖子编辑屏幕中添加一个元框来添加帖子元,然后使用add_action('save_ post ','function_to_update_meta')来触发添加元函数。但我不知道如何在管理菜单页面(例如自定义管理菜单)中触发add_post_meta函数。如何做到这一点?
提前谢谢你!