Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#3999 closed (wontfix) template dir argument

Reported by: stuff4ash@… Owned by: adrian
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: UI/UX:


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 9 years ago by SmileyChris

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to wontfix
  • Status changed from new to closed

Use a separate settings files for this.

comment:2 Changed 9 years ago by stuff4ash@…

  • Resolution wontfix deleted
  • Status changed from closed to reopened

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 9 years ago by SmileyChris

  • Triage Stage changed from Unreviewed to Design 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 9 years ago by mtredinnick

  • Resolution set to wontfix
  • Status changed from reopened to closed

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 follow-up: Changed 7 years ago by gsong

Or just write a custom command to plug into

comment:6 in reply to: ↑ 5 Changed 6 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 6 years ago by SmileyChris

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

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