Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Django Quiz 2025

Дата публикации: 05-01-2026 00:48:30



Основное содержимое страницы с новостью.

2026-01-03The Tower of London, a London landmark!

Last month, I held another quiz at the December edition of Django London. The December quiz is an annual tradition at our meetup, a way of making this final event of the year more relaxed and giving away some nice prizes. This was the seventh quiz that I’ve presented, and the eighth overall.

Here’s an action shot taken by one of my co-organizers:

Me giving the quiz at Django London, 2025.

Below is the quiz itself, so you can try it at home. Answers follow at the end, with some extra explanation. Dates refer to December 2025, so if you’re reading in the future, take that into consideration. (Posting a little late this time, so happy new year!)

Enjoy!

The quiz
1. How old is Django this year?
  1. 5 years
  2. 15 years
  3. 20 years
  4. It is as ageless as the stars
2. Which of these databases does core Django support?
  1. MongoDB
  2. Oracle
  3. Microsoft SQL Server
  4. A bunch of YAML files
3. Which of the below names is not a current Django Fellow?
  1. Jacob Tyler Walls
  2. Natalia Bidart
  3. Sarah Boyce
  4. Django Reinhardt
4. Who manages the Django project?
  1. The Python Software Foundation
  2. Adrian Holovaty
  3. The Django Software Foundation
  4. Anyone who lists Django as a skill on LinkedIn
5. What is the latest version of Django?
  1. 5.6
  2. 6.0
  3. 60
  4. 1.6
7. What does CSP stand for?
  1. Content Security Policy
  2. Contributed Security Patches
  3. Callable Script Parameters
  4. Crazy Secure Python
8. What is the new decorator to define a background task?
  1. @task
  2. @background_task
  3. @background
  4. @do_it_later
9. In which city will DjangoCon Europe 2026 be held?
  1. Athens, Greece
  2. Zagreb, Croatia
  3. Dublin, Ireland
  4. Hell, Norway
10. How do you use Django's test client to make a GET request?
  1. Client.get(url)
  2. self.client.get(url)
  3. self.client.fetch("GET", url)
  4. llm.prompt(f"Check this URL with GET: {url}")
11. Which ORM method returns a dictionary of PKs to model instances?
  1. Model.objects.in_bulk()
  2. Model.objects.fetch_dict()
  3. Model.objects.bulk_get()
  4. Model.objects.plz_make_a_dict()
12. What's the HTML tag for a dialog?
  1. <popover>
  2. <popup>
  3. <dialog>
  4. <from-future-import-dialog>
Answers

But first, some vertical space.

A

N

S

W

E

R

S

B

E

L

O

W
Okay, now the answers
2. Which of these databases does core Django support?

Django has supported Oracle since 2006!

3. Which of the below names is not a current Django Fellow?

Django Reinhardt was a jazz guitarist, from whom the framework takes its name. Jacob Tyler Walls, Natalia Bidart, and Sarah Boyce are the current Django Fellows.

4. Who manages the Django project?

The Django Software Foundation is a US non-profit with the aim of promoting, supporting, and advancing the Django web framework.

7. What does CSP stand for?

CSP stands for Content Security Policy, a security feature that helps prevent XSS attacks, as newly supported in Django 6.0!

8. What is the new decorator to define a background task?

The @task decorator is new in Django 6.0 for defining background tasks, which you can use like:

from django.tasks import task

from example.models import User


@task
def send_welcome_email(user_id):
    user = User.objects.get(id=user_id)
    ...
9. In which city will DjangoCon Europe 2026 be held?

DjangoCon Europe 2026 will be held in Athens, Greece. See you there?

10. How do you use Django's test client to make a GET request?

A testing classic! Use self.client.get(url) to make a GET request with Django's test client, like:

from django.test import TestCase


class IndexTests(TestCase):
    def test_success(self):
        response = self.client.get("/index/")

        assert response.status_code == 200
        ...
11. Which ORM method returns a dictionary of PKs to model instances?

The Model.objects.in_bulk() method returns a dictionary of primary keys to model instances. For example:

In [1]: Book.objects.in_bulk([1, 2, 3])
Out[1]:
{1: <Book: Brave New World (id=1)>,
 2: <Book: Slaughterhouse-Five (id=2)>,
 3: <Book: 1984 (id=3)>}
12. What's the HTML tag for a dialog?

The <dialog> element has been available since 2022, and was extended by the Invoker Commands API this year. You can now make a <dialog> that is opened by a <button> without any JavaScript like so:

<button commandfor=subscribers command=show-modal>
  View subscribers
</button>

<dialog id=subscribers>
  <button commandfor=mydialog command=close>Close</button>
  <h2>Subscribers</h2>
  <!-- Insert contents here -->
</dialog>

Short, sweet, and powerful.

Fin

I hope you have enjoyed reading through doing this quiz. You can see the previous year’s quizzes in the “related posts” section below.

May your 2026 be filled with many joyful hours building with Django,

—Adam


Read my book Boost Your Git DX to Git better.


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

Related posts:

Tags: django

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Управление задачами 20250018-08-2025
2Онлайн-доски 20250026-11-2025
3Résultats annuels 2025043.3301-01-1970
4Заказная разработка ПО 20250027-01-2026
5Законодателство относно достъпа до информация 2025026.6701-06-2026
6Islamic Finance Awards 2025011.7201-12-2025
7Talk Python to Me: #532: 2025 Python Year in Review024.7902-01-2026
8Investment Management Awards 2025013.3301-12-2025
9Årsredovisning 2025027.520-02-2026
10ИКРА ГОРБУШИ, КЕТЫ, НЕРКИ, КИЖУЧ 2025г. ВестФиш0505-07-2026

Классификация: . Схожих патентов: 0. Схожих новостей: 10. Тональность: 0. Информативность: 35. Источник: pythondigest.ru.