简体   繁体   English

Django SECRET_KEY:将哈希密码复制到其他Django项目中

[英]Django SECRET_KEY : Copying hashed passwords into different Django project

I have a Django powered site(Project-1) running with some users registered on it. 我有一个运行Django的网站(Project-1),其中已注册了一些用户。 I am now creating a revamped version of the site in a new separate Django project(Project-2) which I would make live once finished. 我现在在一个新的单独的Django项目(Project-2)中创建该站点的修订版,一旦完成,我将使其生效。 I would need to populate the User data along with their hashed passwords currently in database of Project-1 into database of Project-2. 我需要将用户数据及其当前在Project-1数据库中的哈希密码填充到Project-2数据库中。 Would having different SECRET_KEY s for Project-1 and Project-2 be an issue to get the hashed passwords migrated and working in Project-2? 为Project-1和Project-2使用不同的SECRET_KEY是否会成为散列密码在Project-2中迁移和工作的问题?

否, settings.SECRET_KEY 。SECRET_KEY不用于密码哈希

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM