﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34312	startapp/startproject template should support file renames with the full context	Will Gordon	nobody	"Currently, startapp/startproject will ''only'' perform a file rename with ""app_name""/""project_name"", https://github.com/django/django/blob/main/django/core/management/templates.py#L180.

I am requesting that it would be possible to use the entirety of values within the `context`. E.g.


{{{
  new_path = os.path.join(top_dir, relative_dir, filename)
  # Sort context by length of the key, so that longer keys are tested first
  for key, value in sorted(context.dicts[-1].items(), key=lambda kv: len(kv[0]), reverse=True):
      if key in new_path:
          new_path = new_path.replace(key, value)
          break
}}}

This would allow the usage of filenames like `camel_case_nameFilename.py-tpl` to be replaced with `AppNameFilename.py`."	New feature	closed	Core (Management commands)	dev	Normal	wontfix			Unreviewed	0	0	0	0	0	0
