0
0
Djangoframework~10 mins

Creating superuser in Django - Interactive Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to create a superuser in Django.

Django
python manage.py [1]
Drag options to blanks, or click blank then click option'
Astartapp
Brunserver
Cmigrate
Dcreatesuperuser
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'runserver' instead of 'createsuperuser'.
Typing 'migrate' which is for database setup.
2fill in blank
medium

Complete the prompt to enter the username when creating a superuser.

Django
Username (leave blank to use '[1]'): 
Drag options to blanks, or click blank then click option'
Aroot
Buser
Cadmin
Dsuperuser
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'root' which is a system user, not Django default.
Using 'superuser' as default username.
3fill in blank
hard

Fix the error in the command to create a superuser by completing the missing part.

Django
python manage.py [1]
Drag options to blanks, or click blank then click option'
Acreatesuperuser
Bmakeuser
Csuperusercreate
Dcreateuser
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of words.
Using incomplete or incorrect command names.
4fill in blank
hard

Fill both blanks to complete the command and option to create a superuser with email prompt.

Django
python manage.py [1] --[2]
Drag options to blanks, or click blank then click option'
Acreatesuperuser
Bemail
Cusername
Dpassword
Attempts:
3 left
💡 Hint
Common Mistakes
Using --username instead of --email for email prompt.
Using wrong command names.
5fill in blank
hard

Fill all three blanks to complete the dictionary comprehension that creates a superuser data dictionary.

Django
superuser_data = { [1]: [2] for [3] in ['username', 'email', 'password'] }
Drag options to blanks, or click blank then click option'
Akey
Binput(key)
Ckey.upper()
Dvalue
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'value' which is undefined.
Using 'key.upper()' which changes the key names.