| | 96 | createsuperuser |
|---|
| | 97 | --------------- |
|---|
| | 98 | |
|---|
| | 99 | **New in Django development version** |
|---|
| | 100 | |
|---|
| | 101 | Creates a superuser account (a user who has all permissions). This is |
|---|
| | 102 | useful if you need to create an initial superuser account but did not |
|---|
| | 103 | do so during ``syncdb``, or if you need to programmatically generate |
|---|
| | 104 | superuser accounts for your site(s). |
|---|
| | 105 | |
|---|
| | 106 | When run interactively, this command will prompt for a password for |
|---|
| | 107 | the new superuser account; when run non-interactively, no password |
|---|
| | 108 | will be set and the superuser account will not be able to log in until |
|---|
| | 109 | a password has been manually set for it. |
|---|
| | 110 | |
|---|
| | 111 | The username and e-mail address for the new account can be supplied by |
|---|
| | 112 | using the ``--username`` and ``--email`` arguments on the command |
|---|
| | 113 | line; if not supplied, ``createsuperuser`` will prompt for them when |
|---|
| | 114 | running interactively. |
|---|
| | 115 | |
|---|
| | 116 | This command is only available if Django's `authentication system`_ |
|---|
| | 117 | (``django.contrib.auth``) is installed. |
|---|
| | 118 | |
|---|
| | 119 | .. _authentication system: ../authentication/ |
|---|
| | 120 | |
|---|
| 111 | | |
|---|
| 112 | | createsuperuser |
|---|
| 113 | | --------------- |
|---|
| 114 | | |
|---|
| 115 | | **New in Django development version** |
|---|
| 116 | | |
|---|
| 117 | | Creates a superuser account (a user who has all permissions). This is |
|---|
| 118 | | useful if you need to create an initial superuser account but did not |
|---|
| 119 | | do so during ``syncdb``, or if you need to programmatically generate |
|---|
| 120 | | superuser accounts for your site(s). |
|---|
| 121 | | |
|---|
| 122 | | When run interactively, this command will prompt for a password for |
|---|
| 123 | | the new superuser account; when run non-interactively, no password |
|---|
| 124 | | will be set and the superuser account will not be able to log in until |
|---|
| 125 | | a password has been manually set for it. |
|---|
| 126 | | |
|---|
| 127 | | The username and e-mail address for the new account can be supplied by |
|---|
| 128 | | using the ``--username`` and ``--email`` arguments on the command |
|---|
| 129 | | line; if not supplied, ``createsuperuser`` will prompt for them when |
|---|
| 130 | | running interactively. |
|---|
| 131 | | |
|---|
| 132 | | This command is only available if Django's `authentication system`_ |
|---|
| 133 | | (``django.contrib.auth``) is installed. |
|---|
| 134 | | |
|---|
| 135 | | .. _authentication system: ../authentication/ |
|---|