Changes between Initial Version and Version 1 of Ticket #33650


Ignore:
Timestamp:
Apr 17, 2022, 4:57:43 PM (2 years ago)
Author:
Tim Graham
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33650

    • Property Triage Stage UnreviewedSomeday/Maybe
    • Property Summary Update startproject template with config directory and custom user modelUpdate startproject template with config directory
  • Ticket #33650 – Description

    initial v1  
    1 I propose that we make makes two changes to the `startproject` template:
    2 
    3 * instead of putting configuration files such as `settings.py`, `wsgi.py`, and the root `urls.py` in `my_project/my_project`, use `my_project/config`
    4 * start the project with a custom User model app, `users`
    5 
    6 Over the years, I've taught or tutored over 100 Djangonauts starting their first project. These two pain points came up the most frequently. 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!"
    7 
    8 It is sometimes better to show rather than tell, so following our own documentation and including a custom User model with the initial project template reinforces the best practice that we explicitly point out in the documentation.
     1I 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`.
     2 
     3Over 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!"
Back to Top