websauna jinja2扩展,它添加了一个标签来生成秘密。
websauna.j2secret的Python项目详细描述
这是cookiecutter websauna模板所需的jinja2扩展。
Usage
用这个定制的Jinja2 extensions扩展cookiecutter环境, 添加名为secret的标记,指定cookiecutter.json中的websauna.j2secret扩展名如下:
{"authentication_random":"{% secret() %}","authomatic_random":"{% secret() %}","session_random":"{% secret() %}","_extensions":["websauna.j2secret.SecretExtension"]}
阅读有关Template Extensions for Cookiecutter的更多信息。
Running the test suite
安装测试和开发依赖项(使用setup.py在文件夹中运行):
pip install -e ".[test]"
使用py运行测试套件。测试运行:
py.test