Tim,

Thanks for taking this on!

Needless to say, I'm all in favor of including a default 'users' app.
Adding one (as has long been recommended by the docs) is a task best
automated.

I've definitely had the "no the other folder" conversation more than enough
times myself. Personally I think I prefer the orderliness of nesting
everything under a single Python package that is the project name, but I'm
not sure how to do that and solve the "two folders with the same name"
problem. In any event, I support whatever the consensus is.

Cheers,
Tobias



On Mon, Apr 18, 2022, 1:17 PM Tim Allen <flip...@peregrinesalon.com> wrote:

> Greetings, friends!
>
> I've issued a PR that 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`, they are created
>    in `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. Having to 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!"
>
>
>    - The `config` option seemed to be the consensus from this thread in
>    the forum: Django New Project Structure/Name - Using Django - Django
>    Forum (djangoproject.com)
>    <https://forum.djangoproject.com/t/django-new-project-structure-name/9987>
>    - Ticket: https://github.com/django/django/pull/15609
>
> 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:  #27909 (Use AUTH_USER_MODEL in startproject template) –
>    Django (djangoproject.com)
>    <https://code.djangoproject.com/ticket/27909>
>    - Avoids ever having this come up again:
>    
> https://www.caktusgroup.com/blog/2019/04/26/how-switch-custom-django-user-model-mid-project/
>
> Here's a link to the PR: https://github.com/django/django/pull/15609
>
> My apologies for not starting with a discussion first. I'm an infrequent
> contributor to the Django codebase!
>
> Regards,
>
> Tim
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-developers+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-developers/33cb49d0-2469-47c0-920e-9501245c5a27n%40googlegroups.com
> <https://groups.google.com/d/msgid/django-developers/33cb49d0-2469-47c0-920e-9501245c5a27n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/CAMGFDKSKKs08Z3rts4Xeewh1fxNkbmt8LyqqHfofAUF0xs0oAg%40mail.gmail.com.
            • ... Hrushikesh Vaidya
            • ... Arthur Pemberton
              • ... Adrian Torres Justo
              • ... Sandro Covo
              • ... Albert
              • ... ome chukwuemeka
              • ... Ian Foote
              • ... Tim Allen
              • ... Michael
    • ... Hazho Human
  • R... 'Tobias McNulty' via Django developers (Contributions to Django itself)

Reply via email to