Django Quiz 2017

Yesterday evening I gave a quiz at the London Django Meetup Group for the second year running. Here it is so you can do it at home (no cheating!). Answers are at the bottom.
Part 1: Trivia
4. What does WSGI stand for?
- Web Socket Gateway Interface
- Web Server Gateway Interface
- Web Server Gated Interface
- WebS GuardIan
Part 2: Coding with Django
1. What’s the import for the new Django 2.0 URL syntax?
from django.paths import url
from django.urls import path
from django.urls import url
from django.urls import fantastic_new_url
2. When you run tests…
settings.DEBUG
is forced toTrue
settings.DEBUG
is forced toFalse
- They fail if
settings.DEBUG
is notTrue
- They fail if
settings.DEBUG
is notFalse
3. The email addresses in settings.ADMINS…
- will be notified of 404 errors and exceptions
- will be notified of exceptions
- will be the only ones allowed to use the Admin
- will be notified of bots crawling the sites
Part 1: Trivia
1. What species is Django’s unofficial spirit animal?
a) Pegasus
Although called the Django Pony, it’s a winged horse, aka pegasus.
2. Djangocon EU this year was in…
d) Florence
See 2017.djangocon.eu. The youtube channel has some talks worth watching.
6. When was the first commit on Django?
2005-07-13
Jacob Kaplan-Moss in SVN (now imported into Git): “Created basic repository structure”. See the commit on GitHub.
7. When was the first commit in Python?
1990-08-09
“Initial revision” by Guido van Rossum - see GitHub.
Part 2: Coding with Django
1. What’s the import for the new Django 2.0 URL syntax?
from django.urls import path
As per the release notes which are worth reading if you haven’t yet :)
4. Django 1.11 was the first version with a non-optional dependency - what was it on?
pytz
It was optional and highly recommended for many versions before.
5. What’s the minimum supported version of Python for Django 2.0?
3.4
Again see the 2.0 release notes!
Improve your Django develompent experience with my new book.
One summary email a week, no spam, I pinky promise.
Related posts:
Tags: django