#19628 closed Uncategorized (fixed)
Add to the documentation note about AUTH_USER_MODEL
Reported by: | Dima Pravdin | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.5-beta-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
It's problem, that if I write the User model striсtly for documentation, I will get a validation error:
auth.user: Model has been swapped out for 'myapp.MyUser' which has not been installed or is abstract.
It's not enough just to set
AUTH_USER_MODEL = 'myapp.MyUser'
Beside that it's necessary add the 'myapp' in INSTALLED_APPS, but it's not specified in the documentation.
Sorry, if it's specified but I didn't find it :)
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
One might argue that calling it a 'Django app' implies it's in the INSTALLED_APPS setting. However, I added a small note to the docs and created a pull request:
https://github.com/django/django/pull/658