Django package to generate random alphanumeric string

后端 未结 2 1784
旧巷少年郎
旧巷少年郎 2020-12-13 12:18

I\'m building an app that has a separated front-end (Angular or some other JS library) and backend (Django). To ensure some security of requests being sent to the server, I

2条回答
  •  别那么骄傲
    2020-12-13 12:52

    From python 3.6, there is a secret module which has a specific method for generating safe random urls. It is the token_urlsafe method.

提交回复
热议问题