Django Quiz 4

Pegasus Coin from Carthage

On Wednesday evening last week I held a quiz at the January London Django Meetup Group. This was the fourth quiz, which has become an annual Christmas tradition at the meetup. Unfortunately it was a month late this year due to venue changes, so I’ve titled this post “Django Quiz 4”.

Here it is so you can try it at home - answers are at the bottom.

Enjoy!

Part 1: Trivia

1. What creature is the Django pony?

  1. Unicorn
  2. Pegasus
  3. Horse
  4. Centaur

2. In which city will DjangoCon Europe 2020 be held?

  1. Prague, Czechia
  2. Porto, Portugal
  3. London, UK
  4. Vatican City

3. What is the “code word” for the latest major Django release?

  1. “Salmagundi”
  2. “Smorgasbord”
  3. “Raft”
  4. “Range”

4. What is the Django Software Foundation funding goal for 2020 in US Dollars?

  1. $30,000
  2. $200,000
  3. $600,000
  4. $1,000,000

5. What was the name of one of Django Reinhardt’s cousins?

  1. Ruby
  2. Python
  3. ECMAScript
  4. Pascal

Part 2: Coding in Django

6. The Django tutorial has you build a Django app called what?

  1. quizzes
  2. surveys
  3. polls
  4. testimonies

7. What is the date for the final Python 2.7 minor version release?

  1. April 2019
  2. October 2019
  3. January 2020
  4. April 2020

8. According to crawler.ninja on 2020-01-14, what percentage of the Alexa top 1 million sites implemented HTTPS and redirected HTTP to HTTPS correctly?

  1. 22%
  2. 52%
  3. 72%
  4. 92%

9. What does URL stand for?

  1. Universal Resource Locator
  2. Uniform Resource Locator
  3. Uniform Range Location
  4. URLs aRen't Long

10. What does the Django management command “inspectdb” do?

  1. Tells you scalability concerns for your current database server
  2. Checks the widget fill level with a db storage frobnicator
  3. Shows a live view of every query to your database
  4. Generates model code for an existing database schema

ANSWERS

But first, some vertical space.

A

N

S

W

E

R

S

B

E

L

O

W

Part 1: Trivia

1. What creature is the Django pony?

The Django Pony, the unofficial mascot of the framework is a Pegasus. It has a dedicated site at djangopony.com.

2. In which city will DjangoCon Europe 2020 be held?

DjangoCon Europe 2020 will be in Porto, Portugal, from the 27th to 31st May. I hope to see you there!

3. What is the “code word” for the latest major Django release?

I previously blogged about the ‘code word’ phenomenon in “A Salmagundi of Django Alpha Announcements”. Each Django release has used a different word to describe the “range” of new features.

Last December’s Django 3.0 release followed the trend and used the term “raft” for the release.

4. What is the Django Software Foundation funding goal for 2020?

The DSF funding goal for 2020 is shown on the fundraising page at $200,000. If your organization isn’t already donating, please consider it!

5. What was the name of one of Django Reinhardt’s cousins?

This is an amazing coincidence discovered last year by Adrian Holovaty, one of the original authors of Django.

Adrian and others named Django the framework is after jazz musician Django Reinhardt. Although they didn’t know it when they named the framework, it turns out Django Reinhardt had a direct cousin called Python Reinhardt.

Part 2: Coding in Django

6. The Django tutorial has you build a Django app called what?

The tutorial covers building a polls application.

7. What is the date for the final Python 2.7 minor version release?

As announced in a Python Software Foundation blog post last December, the final official 2.7 release will be in April 2020.

8. According to crawler.ninja on 2020-01-14, what percentage of the Alexa top 1 million sites implemented HTTPS and redirected HTTP to HTTPS correctly?

crawler.ninja is a project by secruity researcher Scott Helme. It performs a daily scan of the Alexa top 1 million sites and makes the data available publicly.

When I checked the results from 2020-01-14, 52% of the scanned sites implemented HTTPS correctly with a redirect from HTTP to HTTPS.

9. What does URL stand for?

Uniform Resource Locator, although I think “URLs aRen’t Long” is a good design goal for a site structure.

10. What does the Django management command “inspectdb” do?

The inspectdb command generates model code for an existing database schema. Helpfully at the meetup, the previous talk covered how this had come in useful on a recent project.

Fin

I hope you have enjoyed reading or doing this quiz! If you want more, see the previous years’ quizzes in the “related posts” section below.

—Adam


Newly updated: my book Boost Your Django DX now covers Django 5.0 and Python 3.12.


Subscribe via RSS, Twitter, Mastodon, or email:

One summary email a week, no spam, I pinky promise.

Related posts:

Tags: