#27909: Use AUTH_USER_MODEL in quick-start template
-----------------------------------------+------------------------
               Reporter:  David D Lowe   |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  1.10
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 The documentation says:

 https://docs.djangoproject.com/en/1.10/topics/auth/customizing/#using-a
 -custom-user-model-when-starting-a-project

 > If you’re starting a new project, it’s highly recommended to set up a
 custom user model, even if the default User model is sufficient for you.
 This model behaves identically to the default user model, but you’ll be
 able to customize it in the future if the need arises:

 If you fail to remember to do this when you set up the project, the
 documentation warns of the difficulty of doing it later:

 > Changing AUTH_USER_MODEL after you’ve created database tables is
 significantly more difficult since it affects foreign keys and many-to-
 many relationships, for example.

 > This change can’t be done automatically and requires manually fixing
 your schema, moving your data from the old user table, and possibly
 manually reapplying some migrations. See #25313 for an outline of the
 steps.

 And it continues, explaining the other difficulties and caveats.

 Starting your project with AUTH_USER_MODEL set is highly recommended, and
 it is a difficult to switch to this method once a project has been
 created. So why doesn't the default template created by `django-admin
 startproject` give a value to `AUTH_USER_MODEL` by default?

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/048.8c858e78264411f3e0561e85e7c0a3e6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to