Book Image

Learning Website Development with Django

Book Image

Learning Website Development with Django

Overview of this book

Table of Contents (18 chapters)
Learning Website Development with Django
Credits
About the Author
About the Reviewers
Preface
Index

Users, Groups and Permissions


So far, we have been logged in to the administration interface using the superuser account that we created with manage.py syncdb. In reality however, you may have other trusted users who need access to the administration page. In this section, we will see how to allow other users to use the administration interface, and we will learn more about the Django permissions system in the process.

But before we continue, I want to emphasize this: only trusted users should be given access to the administration pages. The administration interface is a very powerful tool, so only those whom you know well should be granted access to it.

User Permissions

If you don't have users in the database other than the superuser, create a new user account using the registration form that we built in chapter four. Alternatively, you could use the administration interface itself by clicking on Users and then Add User. Next, return to the users list and click on the name of the newly created...