Opened 13 years ago

Closed 13 years ago

#17517 closed Bug (fixed)

Project/app layout template file extensions

Reported by: Timothée Peignier 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

Description

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 Florian Apolloner 13 years ago.
17517-2.diff (5.8 KB ) - added by Florian Apolloner 13 years ago.
replace -f/--file with -n/--name

Download all attachments as: .zip

Change History (5)

comment:1 by Jannis Leidel, 13 years ago

Triage Stage: UnreviewedAccepted
Type: UncategorizedBug

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.

by Florian Apolloner, 13 years ago

Attachment: 17517.diff added

comment:2 by Florian Apolloner, 13 years ago

Cc: florian+django@… added

by Florian Apolloner, 13 years ago

Attachment: 17517-2.diff added

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

comment:3 by Jannis Leidel, 13 years ago

Resolution: fixed
Status: newclosed

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