How to use bcrypt on Google App Engine (GAE)? [duplicate]

不想你离开。 提交于 2019-12-05 16:57:13
Jose L Ugia

You have to include the source of bcrypt (or any other non-embedded library) into your project. Suggestion is to create a libs folder on the root of your project (same level where app.yaml lives) and place there as many libraries' sources as you need.

For this case, the final result should look like: /libs/bcrypt/

Make sure to include __init__.py blank files on any new folder you want your code to treat this folder as a package. After that, simply import the module: from libs.bcrypt import bcrypt

EDIT: Also note you can just have pure python code on your app engine project. Try py-bcrypt, it is working like a charm for a project hosted on App Engine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!