Django SECRET_KEY : Copying hashed passwords into different Django project

44 views
Skip to first unread message

Ankit Agrawal

unread,
Aug 5, 2015, 5:12:47 AM8/5/15
to Django users


Hi everyone,


      I have a Django powered site(Project-1) running with some users registered on it. 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. I would need to populate the User data along with their hashed passwords currently in database of Project-1 into database of Project-2. Would having different SECRET_KEYs for Project-1 and Project-2 be an issue to get the hashed passwords migrated and working in Project-2?

Simon Charette

unread,
Aug 5, 2015, 11:16:21 AM8/5/15
to Django users
Hi Angit,

It shouldn't be an issue since Django's default password hashers are not relying on settings.SECRET_KEY.

Simon

Tim Graham

unread,
Aug 5, 2015, 1:55:32 PM8/5/15
to Django users
By the way, the docs for SECRET_KEY have a description of what will be invalidated if you change it:

https://docs.djangoproject.com/en/stable/ref/settings/#secret-key
Reply all
Reply to author
Forward
0 new messages