django user.is_superuser is_staff code example Example: django admin create superuser $ python manage.py createsuperuser