Re: Migration of auth.user to custom user

2017-08-10 Thread James Schneider
On Aug 4, 2017 12:36 AM, "Mike Dewhirst"  wrote:

I have read  widely (including the docs) and been daunted by the notion of
coverting auth.user  into a custom user. I have data and wonder if there
have been any recent recipes for doing this?


On a related note, I'd recommend implementing a custom user model
immediately on every new project, even if you don't intend to change
anything on the built-in user immediately. It is as simple as inheriting
from django.contrib.auth.models.AbstractUser like this:

class MyUser(AbstractUser):
pass

And then setting AUTH_USER_MODEL to MyUser. At that point, changes to the
user model are handled via standard migrations.

Obviously this doesn't help existing projects. You'll still be stuck with
the foreign key shell game that is implementing a custom user after the
fact.

-James

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciWneHQykX-zDFWni8d7O%2BLwGbJNRzknxnNKw_KJftZRug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Re: Migration of auth.user to custom user

2017-08-10 Thread Mike Dewhirst

On 7/08/2017 11:55 PM, Tim Graham wrote:

Some steps are outlined in https://code.djangoproject.com/ticket/25313.


OK thanks Tim. I'll start the planning. I'll presume Django 1.10 isn't 
sufficiently different from 1.8 for which the instructions are written.


I wish I wasn't an underconfident wuss!



On Friday, August 4, 2017 at 3:37:08 AM UTC-4, Mike Dewhirst wrote:

I have read  widely (including the docs) and been daunted by the
notion
of coverting auth.user  into a custom user. I have data and wonder if
there have been any recent recipes for doing this?

Thanks

Mike

--
You received this message because you are subscribed to the Google 
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to django-users+unsubscr...@googlegroups.com 
.
To post to this group, send email to django-users@googlegroups.com 
.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c29496a8-1294-481a-8316-5c288b0af6f9%40googlegroups.com 
.

For more options, visit https://groups.google.com/d/optout.



--

Climate Pty Ltd
PO Box 308
Mount Eliza
Vic 3930
Australia +61

T: 03 9034 3977
M: 0411 704 143


--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3bade296-ace2-d356-d1bf-d5aa3c25b201%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.


Re: Migration of auth.user to custom user

2017-08-07 Thread Tim Graham
Some steps are outlined in https://code.djangoproject.com/ticket/25313.

On Friday, August 4, 2017 at 3:37:08 AM UTC-4, Mike Dewhirst wrote:
>
> I have read  widely (including the docs) and been daunted by the notion 
> of coverting auth.user  into a custom user. I have data and wonder if 
> there have been any recent recipes for doing this? 
>
> Thanks 
>
> Mike 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c29496a8-1294-481a-8316-5c288b0af6f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Migration of auth.user to custom user

2017-08-04 Thread Mike Dewhirst
I have read  widely (including the docs) and been daunted by the notion 
of coverting auth.user  into a custom user. I have data and wonder if 
there have been any recent recipes for doing this?


Thanks

Mike

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/cfb6efaa-e46d-8141-db61-93af6f155adf%40dewhirst.com.au.
For more options, visit https://groups.google.com/d/optout.