Opened 2 years ago

Last modified 2 months ago

#33650 new Cleanup/optimization

Update startproject template with config directory — at Version 1

Reported by: Timothy Allen Owned by: nobody
Component: Core (Management commands) Version: dev
Severity: Normal Keywords: startproject, template
Cc: John Speno, Salaah Amin, Ülgen Sarıkavak Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

I propose that we change the startproject template to put configuration files such as settings.py, wsgi.py, and the root urls.py in my_project/config instead of my_project/my_project.

Over the years, I've taught or tutored over 100 Djangonauts starting their first project. Having to explain and distinguish between two directories with the same name is a constant pain point in the teaching process - "cd into my_project ... no, the other one!"

Change History (1)

comment:1 by Tim Graham, 2 years ago

Description: modified (diff)
Summary: Update startproject template with config directory and custom user modelUpdate startproject template with config directory
Triage Stage: UnreviewedSomeday/Maybe

It would be better to first propose these ideas on the mailing list to build consensus. And since the two ideas are independent, it would be better to have two separate tickets. #27909 is already at "someday/maybe" status regarding the custom user model, pending a discussion. I'll repurpose this one to focus on changing the settings directory name. I'm not sure if that's been proposed, but I found a recent discussion on the forum. I see you've already offered a patch.

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