1) For the first time, the corresponding settings.The string value of the user model specified in AUTH_USER_MODEL is retrieved.
2) In the case of the number of times, the user object applied with the user model itself is imported.
Therefore, you can write number 1 when you import only the path to the app, and number 2 when you need the object itself. For example, when you need ForeignKey, you can use it because you need a model path (?) rather than an entire object in the field below, and you can use it like the bottom if you need a specific field in user.
© 2022 pinfo. All rights reserved.