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-5/

Recipe Sharing Platform

Problem/Feature Description

Build a recipe sharing platform with Django. Users can create recipes with ingredients, steps, and categories. The homepage shows the 20 most popular recipes (by number of likes) with their author names and category labels. Each recipe has a detail page showing all ingredients, steps, and comments from other users.

Requirements:

  1. Users can register and create recipes
  2. A recipe has a title, description, prep time, cook time, servings, and a difficulty level (easy, medium, hard)
  3. Each recipe has multiple ingredients (name + quantity) and ordered preparation steps
  4. Recipes belong to categories (e.g., Breakfast, Lunch, Dinner, Dessert) -- a recipe can have multiple categories
  5. Users can like recipes and leave comments
  6. The homepage lists popular recipes with author name and categories shown
  7. A recipe detail page at /recipes/<slug>/ shows everything including ingredients, steps, and comments with commenter names
  8. A category page shows all recipes in that category
  9. A management command to feature the top 5 most-liked recipes

Output Specification

Produce Python source files in a recipeapp/ directory:

  • Settings configuration (however you choose to organize it)
  • URL configuration
  • App files with models, views, urls, forms, admin
  • Templates directory structure
  • The management command file
  • manage.py

Do not run migrations or start the server.

evals

tile.json