Opened 3 years ago

Last modified 12 months ago

#33650 new Cleanup/optimization

Update startproject template with config directory and custom user model — at Initial Version

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

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.

According to the ticket's flags, the next step(s) to move this issue forward are:

  • Unknown. The Someday/Maybe triage stage is used to keep track of high-level ideas or long term feature requests.

    It could be an issue that's blocked until a future version of Django (if so, Keywords will contain that version number). It could also be an enhancement request that we might consider adding someday to the framework if an excellent patch is submitted.

    If you're interested in contributing to the issue, raising your ideas on the Django Forum would be a great place to start.

Change History (0)

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