0
0
Djangoframework~10 mins

Development server and runserver in Django - Interactive Code Practice

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

Complete the code to start the Django development server.

Django
python manage.py [1]
Drag options to blanks, or click blank then click option'
Arunserver
Bstartserver
Cserve
Dlaunch
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'startserver' instead of 'runserver'.
Using 'serve' or 'launch' which are not Django commands.
2fill in blank
medium

Complete the command to run the server on port 8080.

Django
python manage.py runserver [1]
Drag options to blanks, or click blank then click option'
A0.0.0.0:8080
B8080
Clocalhost:80
D127.0.0.1:8000
Attempts:
3 left
💡 Hint
Common Mistakes
Using just '8080' without IP address.
Using default port 8000 instead of 8080.
3fill in blank
hard

Fix the error in the command to run the server on all interfaces.

Django
python manage.py [1] 0.0.0.0:8000
Drag options to blanks, or click blank then click option'
Astartserver
Blaunch
Cserve
Drunserver
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startserver' or 'serve' instead of 'runserver'.
4fill in blank
hard

Fill both blanks to run the server on localhost at port 9000.

Django
python manage.py [1] [2]
Drag options to blanks, or click blank then click option'
Arunserver
Bstartserver
C127.0.0.1:9000
D0.0.0.0:9000
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startserver' as command.
Using '0.0.0.0:9000' instead of localhost IP.
5fill in blank
hard

Fill both blanks to run the server on all interfaces at port 5000.

Django
python manage.py [1] [2]
Drag options to blanks, or click blank then click option'
Arunserver
B0.0.0.0:5000
Cdebug
Dstartserver
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startserver' instead of 'runserver'.
Using wrong IP/port.