mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-03 20:10:10 +03:00
Use createsuperuser email and username flags
This commit is contained in:
parent
c63e35cb09
commit
b904effab7
|
@ -54,7 +54,7 @@ Now sync your database for the first time:
|
|||
|
||||
We'll also create an initial user named `admin` with a password of `password123`. We'll authenticate as that user later in our example.
|
||||
|
||||
python manage.py createsuperuser
|
||||
python manage.py createsuperuser --email admin@example.com --username admin
|
||||
|
||||
Once you've set up a database and initial user created and ready to go, open up the app's directory and we'll get coding...
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user