I have an authentication server based on an outdated database. When someone registers in this database and there is no corresponding record User, I create it. I am wondering if there is a way to warn the Django system about this fact, so that, for example, I can redirect a completely new user to another page.
The only thing I can think of is to add a flag to the user profile entry, named as is_new, which is tested once, and then set to Falseas soon as they are redirected.
Basically, I wonder if someone else understood, so I don't need to reinvent the wheel.
source
share