# Vind de bug: Django > Eén stukje code. Vind de bug, of bewijs dat er geen is. Dagelijkse challenge: 2026-08-19 (UTC) · Senior ```python import logging from django.http import JsonResponse from .models import Article logger = logging.getLogger(__name__) def get_article(request, slug): try: article = Article.objects.get(slug=slug) except Article.DoesNotExist: logger.error("Article not found: slug=%s", slug) return JsonResponse({"error": "Not found"}, status=404) return JsonResponse({"title": article.title, "body": article.body}) ``` ## Jouw oordeel - Beveiligingslek - Logicafout - Codestijl - Geen probleem Eén poging per dag. Het antwoord verschijnt direct daarna. --- Source: SharpSkill (https://sharpskill.dev), tech interview preparation for your real stack. HTML version of this page: https://sharpskill.dev/nl/dagelijkse-challenge/django