Opened 12 years ago

Closed 12 years ago

Last modified 8 years ago

#3999 closed (wontfix) template dir argument

Reported by: stuff4ash@… Owned by: Adrian Holovaty
Component: Core (Management commands) Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


It could be useful to be able to specify alternative project/app template directories (instead of django/conf/app_template & django/conf/project_template).
Developers could have custom template dirs taylored to their needs.

Change History (7)

comment:1 Changed 12 years ago by Chris Beaven

Resolution: wontfix
Status: newclosed

Use a separate settings files for this.

comment:2 Changed 12 years ago by stuff4ash@…

Resolution: wontfix
Status: closedreopened

what settings file? when creating a project (as in running django-admin startproject) what settings file can you specifiy?
when i create a new project, i get a a folder with the project name, with subfiles,,, and namely, the files that are under django/conf/project_template. i would like to specify an alternative project_template folder, it automatically creates whatever i have under it, (for example, a substructure i sometimes work with):

apps media
config README tools
docs templates

as far as i know, this has nothing to do with settings option. i might be wrong though ;)

comment:3 Changed 12 years ago by Chris Beaven

Triage Stage: UnreviewedDesign decision needed

Oh, ok. I was under the impression you were talking about the TEMPLATE_DIR setting (too much skim-reading, sorry).

startapp and startproject are just shortcuts - IMO we don't need a setting to override this, but I'll pass it by someone else to decide.

comment:4 Changed 12 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: reopenedclosed

I agree with Chris. There's a limit to how much customisation it's worth having here. You can easily copy whichever files or directories you want by hand or script if you are up to the level of needing to customise them.

comment:5 Changed 10 years ago by George Song

Or just write a custom command to plug into

comment:6 in reply to:  5 Changed 8 years ago by pbaker@…


This is a bit old, but came across it in development of Django dependent project, RapidSMS. This inflexibility has caused (poor) duplication of code (see 1 and 2 and 3).

As Django has grown and become used by more projects, it might make sense to tackle this. @gsong, a custom command in doesn't fix the hard-coded path in Instead of making an additional setting, how about passing an additional variable to the copy_helper? I'd be happy to submit a patch!

comment:7 Changed 8 years ago by Chris Beaven

A better place to talk about closed tickets is the mailing list.

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