| 266 | | it after adding ``'django.contrib.auth'`` to your ``INSTALLED_APPS``. But if |
|---|
| 267 | | you need to create a superuser after that via the command line, you can use the |
|---|
| 268 | | ``create_superuser.py`` utility. Just run this command:: |
|---|
| | 266 | it after adding ``'django.contrib.auth'`` to your ``INSTALLED_APPS``. If you need |
|---|
| | 267 | to create a superuser at a later date, you can use a command line utility. |
|---|
| | 268 | |
|---|
| | 269 | **New in Django development version.**:: |
|---|
| | 270 | |
|---|
| | 271 | manage.py createsuperuser --username=joe --email=joe@example.com |
|---|
| | 272 | |
|---|
| | 273 | You will be prompted for a password. Once entered, the user is created. If you |
|---|
| | 274 | leave off the ``--username`` or the ``--email`` option, It will prompt you for |
|---|
| | 275 | those values as well. |
|---|
| | 276 | |
|---|
| | 277 | If you're using an older release of Django, the old way of creating a superuser |
|---|
| | 278 | on the command line still works:: |
|---|