The import statement import the needed parts. but is the “user” class already made when you put that into your installed apps? or do you still need to clarify in models.py in order to make the table in the db? or can someone expand on how to use django users and sessions? I’m looking over the django docs right now and they all just go over how to use the thing once. they never put the code in a syntax where users are going to be the ones using the code through a browser and not you through a python shell.
Share
All installed apps can contribute to the database schema.
django.contrib.auth.modelscontributes, among others, theauth_usertable behind thedjango.contrib.auth.models.Usermodel, therefore you do not have to worry about recreating it unless you have a specific reason to do so.