User: user is the relational schema that maintains user information in the auth module (inheriting models.
Auth ‘uses this app, and the auth module is enabled by default. Then we can use it to improve some small projects before us Īuth can be used together with admin module to quickly establish the website management system It can provide user identity authentication, user group and authority management. Auth module of Django permission systemĪuth module is a standard authority management system provided by Django. The other three tables are intermediate tables with many to many relationships 1. It stores the information table of users, user groups and permissions Note: in the table shown above, there are intermediate tables generated by many to many table relationship, and Django’s humanized point is that if it is an intermediate table generated by many to many relationship, its naming method is that the main table is first and the slave table is last! Like auth_ group_ Permissions table, where auth_ Group is the main table, auth_ Permission is associated from two tables_ Group to auth_ Permissions is positive!!!Īs we can see from the name of the chart above,Īuth_ user,auth_ group,auth_ Permission respectively Initial contactĪs shown in the figure above, it is the table corresponding to the auth system of Django, that is, the table storing the super user information created before (that is, the table generated by database migration not mentioned before ~) This reminds us of some tables automatically created by Django when we map the database (which are also those tables not mentioned in the previous database migration)!!! 0.
Do you have a question – where is the information of the super user?
Yesterday, we created a super user by command in order to log in to admin.