SI 364 Midterm
What is the purpose of the admin site in a Django project? A site that tracks user activity A site that makes sure all of the software is always the latest version A site that lets you add, change, and delete data items A site the checks to see if your server is using too many resources
A site that lets you add, change, and delete data items
The Linux command to search files for a particular string is "grep". What does "grep" stand for? Go Research Explore Print GReat Expression Printer General Regular Expression Parser Global Regular Expression Print
Global Regular Expression Print
What operating system are you using in PythonAnywhere when you open a Bash shell? MacOS MS/DOS DEC VMS Linux Windows
Linux
In the mysite/urls.py file, what is the basic idea of "include"? To make it easy to plug-and-play URLs To properly install django and all its dependencies To apply a regular expression to the incoming path in the request object To pull in commonly used HTML material
To make it easy to plug-and-play URLs
What is the name of the application we build in step 1 of "Writing your first Django app, part 1"? polls autos dogs cats blog
polls
What command do we run on PythonAnywhere instead of "python manage.py runserver"? python manage.py check - and then reload the web application python manage.py migrate - and then set the virtual environment python startapp polls python manage.py paw_restart
python manage.py check - and then reload the web application
What command is used to add a new application to a Django project? python manage.py build python manage.py create python manage.py new python manage.py startapp
python manage.py startapp
Which of these commands must be typed when you start a new shell to activate your virtual environment to make sure you have the correct versions of Python and Django. ls grep workon django4 cd
workon django4