Assalam Aleykum.
If duplicating data from database completed correctly, there must not be any such problems with it, if also the project settings were not changed, like DJANGO_SECRET_KEY or some other django settings, which are changing authorization behavior. I can just recomend u to do this all again, and ensure that nothing on db copy, and the project settings are not changed.
If you have detail information, i will try to help).
Good luck.