Django Test
Consider the following code snippet for a Django Model: class Salary(models.Model): amount = models.PositiveIntergerField(help_text='eg 8000') retired = models.BooleanField(help_text='...
Consider the following Python string representing a human readable date and time: dt = 'Jan 14 2009 11:00PM' Which of the following code snippets will convert the above string to a Python D...
Consider two Django QuerySets query_set_1 and query_set_2 from two different models. Which of the following code snippets is the most performant when concatenating the two QuerySets into one list?
What does the "with" template tag do?
What does the django.core.context_processors.static() method do?
What is the best way to extend the Django user model with extra custom fields in addition to the fields already provided?
What is the default max_length value of a SlugField class in Django?
Which of the following classes uses an HTTP 304 status code?
Which of the following django.template.loader functions will take a list of template names and return the first template that exists?
Which of the following gets called when a view raises an exception?
Which of the following happens when process_exception() returns "None"?
Which of the following is a built-in BaseCommand subclass?
Which of the following is false about the django.models.SlugField() model field?
Which of the following is not a built-in Django template loader class?
Which of the following is not a predefined log level in Django?
Which of the following statement is false about the django.http.HttpRequest.get_host() method ?
Which of the following statements about database transactions in Django is false?
Which of the following statements are true about the ImageField class?
Which of the following statements is true about Django's default implementation of the authentication system?
Which of the following statements is true about the django.template.RequestContext class?