[Django] #33650: Update startproject template with config directory and custom user model

3 views
Skip to first unread message

Django

unread,
Apr 17, 2022, 5:31:20 PM4/17/22
to django-...@googlegroups.com
#33650: Update startproject template with config directory and custom user model
-------------------------------------+-------------------------------------
Reporter: Timothy | Owner: nobody
Allen |
Type: | Status: new
Cleanup/optimization |
Component: Core | Version: dev
(Management commands) | Keywords: startproject,
Severity: Normal | template
Triage Stage: | Has patch: 1
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
I propose that we make makes two changes to the `startproject` template:

* 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`
* start the project with a custom User model app, `users`

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!"

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.

--
Ticket URL: <https://code.djangoproject.com/ticket/33650>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages