Django Part-I
Sign in to Google to save your progress. Learn more
What is the correct way to begin a class called "Rainbow" in Python? *
1 point
Which skills do you need to maintain a set of Django templates? *
1 point
In which programming language is Django written? *
1 point
You have inherited a Django project and need to get it running locally. It comes with a requirements.txt file containing all its dependencies. Which command should you use? *
1 point
How do you determine at startup time if a piece of middleware should be used? *
1 point
How do you turn off Django’s automatic HTML escaping for part of a web page? *
1 point
A client wants their site to be able to load "Rick & Morty" episodes by number or by title—e.g., shows/3/3 or shows/picklerick. Which URL pattern do you recommend? *
1 point
What is the correct way to make a variable available to all of your templates? *
1 point
Which is NOT a valid step in configuring your Django 2.x instance to serve up static files such as images or CSS? *
1 point
Every time a user is saved, their quiz_score needs to be recalculated. Where might be an ideal place to add this logic? *
1 point
Django's class-based generic views provide which classes that implement common web development tasks? *
1 point
Which step would NOT help you troubleshoot the error "django-admin: command not found"? *
1 point
To cache your entire site for an application in Django, you add all except which of these settings? *
1 point
What will this URL pattern match? url(r'^$', views.hello) *
1 point
You want to create a page that allows editing of two classes connected by a foreign key (e.g., a question and answer that reside in separate tables). What Django feature can you use? *
1 point
What is the typical order of an HTTP request/response cycle in Django? *
1 point
Should you create a custom user model for new projects? *
1 point
To automatically provide a value for a field, or to do validation that requires access to more than a single field, you should override the ___ method in the ___ class. *
1 point
Which best practice is NOT relevant to migrations? *
1 point
Why are QuerySets considered "lazy"? *
1 point
Submit
Clear form
This content is neither created nor endorsed by Google.