Django User Management 13 Marks
Django User Management 13 Marks
In Django, users are people who interact with the web application. The Django admin interface
There are two main types of users: normal users and superusers (admins). The admin interface
A) Creating Users
user.last_name = 'ABC'
user.save()
Creating a Superuser:
user.user_permissions.set([...])
user.user_permissions.add(permission1, permission2)
user.user_permissions.remove(permission)
C) Managing Groups
1. Creating Groups:
- Click Add, set the group name and permissions, then save.
3. Group Permissions:
- Example: An "Editor" group can be given permission to modify content. All users in this group get
Conclusion
Django's admin interface provides a powerful way to manage users and permissions. Superusers
and manage groups to control access and functionality across the web application.