CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl-labs/django-best-practices

Django patterns -- custom user model, project structure, models, views, URL routing, select_related/prefetch_related, signals vs save(), middleware, settings splitting, custom managers, management commands

92

1.63x
Quality

87%

Does it follow best practices?

Impact

100%

1.63x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

task.mdevals/scenario-1/

Blog Platform

Problem/Feature Description

Build a blog platform with Django. The blog should support posts written by registered users, comments on posts, and a tagging system. Posts can be drafts or published. The homepage shows the 10 most recent published posts with their author names, comment counts, and tags. Each post has a detail page showing the full content, all comments with commenter names, and tags. Visitors can filter posts by tag.

Requirements:

  1. Users can register and log in
  2. Authenticated users can create posts (draft by default) and publish them
  3. Authenticated users can comment on published posts
  4. Posts can have multiple tags, and a tag can be on multiple posts
  5. The homepage lists the 10 most recent published posts showing author name, comment count, and tags for each
  6. Each post has a detail page at /blog/<slug>/ with comments and tags
  7. A tag page at /blog/tag/<slug>/ shows all posts with that tag

Output Specification

Produce Python source files in a blogsite/ directory:

  • config/settings.py (or settings module)
  • config/urls.py
  • App files for each feature area with models, views, urls, forms, and admin configuration
  • templates/ directory with base template and app templates
  • manage.py

Do not run migrations or start the server.

evals

scenario-1

criteria.json

task.md

tile.json