Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to install Django using pip.
Django
pip install [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Typing 'pip install Django' with uppercase D (standard is lowercase 'django').
Installing unrelated packages like Flask or Requests.
✗ Incorrect
Use pip install django to install the Django framework.
2fill in blank
mediumComplete the command to check the installed Django version.
Django
django-admin [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'startproject' which creates a new project instead.
Using 'runserver' which starts the development server.
✗ Incorrect
Use django-admin --version to see the installed Django version.
3fill in blank
hardFix the error in the pip install command to install Django.
Django
pip install [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase 'Django' (standard is lowercase 'django').
Adding invalid version specifiers.
✗ Incorrect
The correct package name is all lowercase: django.
4fill in blank
hardFill both blanks to upgrade Django to the latest version using pip.
Django
pip [1] django [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'uninstall' instead of 'install' to upgrade.
Using '--version' which only shows version info.
✗ Incorrect
Use pip install django --upgrade to upgrade Django.
5fill in blank
hardFill all three blanks to create a new Django project named 'myproject'.
Django
django-admin [1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'runserver' instead of 'startproject'.
Omitting the dot to specify current directory.
✗ Incorrect
Use django-admin startproject myproject . to create a new project in the current folder.