Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the Django development server.
Django
python manage.py [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'startserver' instead of 'runserver'.
Using 'serve' or 'launch' which are not Django commands.
✗ Incorrect
Use runserver to start the Django development server.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using just '8080' without IP address.
Using default port 8000 instead of 8080.
✗ Incorrect
Use 0.0.0.0:8080 to run the server on all interfaces at port 8080.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startserver' or 'serve' instead of 'runserver'.
✗ Incorrect
The correct command is runserver to start the Django development server.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startserver' as command.
Using '0.0.0.0:9000' instead of localhost IP.
✗ Incorrect
Use runserver and 127.0.0.1:9000 to run the server locally on port 9000.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startserver' instead of 'runserver'.
Using wrong IP/port.
✗ Incorrect
Use runserver 0.0.0.0:5000 to run the server on all interfaces at port 5000.