Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added some documentation explaining (1) that it's possible to add use…

…rs via the Django admin site, and (2) that in order to be able to add users via the admin site, you need to have both 'add user' and 'change user' permissions. Refs #9866

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9684 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 89dc5b894a7c7ac1633f0c270ac249f302bccd1d 1 parent be26972
Adrian Holovaty authored December 25, 2008

Showing 1 changed file with 15 additions and 0 deletions. Show diff stats Hide diff stats

  1. 15  docs/topics/auth.txt
15  docs/topics/auth.txt
@@ -292,6 +292,21 @@ that comes with Django::
292 292
     >>> user.is_staff = True
293 293
     >>> user.save()
294 294
 
  295
+You can also create users using the Django admin site. Assuming you've enabled
  296
+the admin site and hooked it to the URL ``/admin/``, the "Add user" page is at
  297
+``/admin/auth/user/add/``. You should also see a link to "Users" in the "Auth"
  298
+section of the main admin index page. The "Add user" admin page is different
  299
+than standard admin pages in that it requires you to choose a username and
  300
+password before allowing you to edit the rest of the user's fields.
  301
+
  302
+Also note: if you want your own user account to be able to create users using
  303
+the Django admin site, you'll need to give yourself permission to add users
  304
+*and* change users (i.e., the "Add user" and "Change user" permissions). If
  305
+your account has permission to add users but not to change them, you won't be
  306
+able to add users. Why? Because if you have permission to add users, you have
  307
+the power to create superusers, which can then, in turn, change other users. So
  308
+Django requires add *and* change permissions as a slight security measure.
  309
+
295 310
 Changing passwords
296 311
 ~~~~~~~~~~~~~~~~~~
297 312
 

0 notes on commit 89dc5b8

Please sign in to comment.
Something went wrong with that request. Please try again.