Opened 5 years ago

Closed 4 years ago

#17517 closed Bug (fixed)

Project/app layout template file extensions

Reported by: cyberdelia Owned by: nobody
Component: Core (Management commands) Version: 1.4-alpha-1
Severity: Normal Keywords:
Cc: florian+django@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Projet or app layout only accept file with an extension as a candidate for template rendering (like .md or .txt).

It's problematic when you want a file named Procfile (or else) to be used as a template.

Attachments (2)

17517.diff (5.8 KB) - added by apollo13 5 years ago.
17517-2.diff (5.8 KB) - added by apollo13 5 years ago.
replace -f/--file with -n/--name

Download all attachments as: .zip

Change History (5)

comment:1 Changed 5 years ago by jezdez

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Bug

Yeah, this seems like an unfortunate limitation, I talked with Carl on IRC and found it best to add an option to the management command to specify additional files to be considered for template rendering.

Changed 5 years ago by apollo13

comment:2 Changed 5 years ago by apollo13

  • Cc florian+django@… added

Changed 5 years ago by apollo13

replace -f/--file with -n/--name

comment:3 Changed 4 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [17432]:

Fixed #17517 -- Added --name option to startproject and startapp management commands to be able to render files without a file extension. Thanks, Florian Apolloner.

Note: See TracTickets for help on using tickets.
Back to Top