Files
app-store-optimization/skills/loki-mode/benchmarks/results/2026-01-05-10-37-54/swebench-loki-patches/django__django-14382.patch

15 lines
648 B
Diff

# django__django-14382
# Loki Mode Multi-Agent Patch
# Attempts: 1
--- a/django/core/management/templates.py
+++ b/django/core/management/templates.py
@@ -74,7 +74,7 @@ class TemplateCommand(BaseCommand):
raise CommandError(e)
else:
if app_or_project == 'app':
- self.validate_name(os.path.basename(target), 'directory')
+ self.validate_name(os.path.basename(target.rstrip(os.sep)), 'directory')
top_dir = os.path.abspath(os.path.expanduser(target))
if not os.path.exists(top_dir):
raise CommandError("Destination directory '%s' does not "