Opened 3 years ago

Last modified 9 months ago

#33650 new Cleanup/optimization

Update startproject template with config directory

Reported by: Timothy Allen Owned by:
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 (7)

comment:1 by Tim Graham, 3 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.

comment:2 by John Speno, 3 years ago

Cc: John Speno added

comment:3 by Salaah Amin, 11 months ago

Owner: changed from nobody to Salaah Amin
Status: newassigned

comment:4 by Salaah Amin, 11 months ago

Cc: Salaah Amin added
Triage Stage: Someday/MaybeReady for checkin

comment:5 by Salaah Amin, 11 months ago

Triage Stage: Ready for checkinAccepted

comment:6 by Mariusz Felisiak, 11 months ago

Has patch: unset
Owner: Salaah Amin removed
Status: assignednew
Triage Stage: AcceptedSomeday/Maybe

Please don't accept tickets, for which discussion has been requested.

comment:7 by Ülgen Sarıkavak, 9 months ago

Cc: Ülgen Sarıkavak added
Note: See TracTickets for help on using tickets.
Back to Top