← All prompt templates

Debug an error prompt

Structured debugging from an error message and context. Fill in the blanks; anything left empty uses the example value shown.

Filled template
environmenterror messageactiontried
I am getting this error in Python 3.12 with Django 5:
"""
paste the full error and stack trace
"""
What I was doing: running migrations after adding a new field.
What I already tried: deleting the migration and regenerating it.
List the 3 most likely causes, most likely first. For each: how to confirm it, and the fix.
59 words · 319 characters

Tips

  • Always include what you tried; it saves a round of obvious suggestions.

Want to go further? Paste the result into the prompt optimizer.

More code templates