flask学习笔记
- 当前工作路径
操作系统有进程当前工作目录的概念。不幸的是,你在 Web 应用中不能依赖此概念,因为你可能会在相同的进程中运行多个应用。
为此,提供了 app.root_path 属性以获取应用的路径。配合 os.path 模块使用,轻松可达任意文件
- 配置 a cleaner solution would be to create a separate .ini or .py file and load that or import the values from there.
- 原文作者:比克王国
- 原文链接:https://wgqimut.github.io/posts/flask%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/
- 版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议进行许可,非商业转载请注明出处(作者,原文链接),商业转载请联系作者获得授权。