Update startproject template with config directory
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)
Description: |
modified (diff)
|
Summary: |
Update startproject template with config directory and custom user model → Update startproject template with config directory
|
Triage Stage: |
Unreviewed → Someday/Maybe
|
Owner: |
changed from nobody to Salaah Amin
|
Status: |
new → assigned
|
Cc: |
Salaah Amin added
|
Triage Stage: |
Someday/Maybe → Ready for checkin
|
Triage Stage: |
Ready for checkin → Accepted
|
Has patch: |
unset
|
Owner: |
Salaah Amin removed
|
Status: |
assigned → new
|
Triage Stage: |
Accepted → Someday/Maybe
|
Cc: |
Ülgen Sarıkavak added
|
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.