Re: Is a Custom User Model worth the headache?

2020-02-15 Thread Mike Dewhirst
Thank you kind sir 😀Makes perfect sense ...Mike Original message From: Carsten Fuchs Date: 15/2/20 23:33 (GMT+10:00) To: django-users@googlegroups.com Subject: Re: Is a Custom User Model worth the headache? Hi Mike,Am 2020-02-14 um 23:30 schrieb Mike Dewhirst:> In y

Re: Is a Custom User Model worth the headache?

2020-02-15 Thread Carsten Fuchs
Hi Mike, Am 2020-02-14 um 23:30 schrieb Mike Dewhirst: > In your documentation you mention "from accounts.models import User" > > I have been maybe taking things too literally. After migrating to my custom > user I have used "from django.contrib.auth import get_user_model" followed by > "User =

Re: Is a Custom User Model worth the headache?

2020-02-14 Thread Mike Dewhirst
On 14/02/2020 7:32 pm, Carsten Fuchs wrote: Am 14.02.20 um 09:03 schrieb Mike Dewhirst: Definitely start a new project with a custom user and I would consider aborting an existing project to restart with a custom user if it was started with the standard user. Which may not be possible for lar

Re: Is a Custom User Model worth the headache?

2020-02-14 Thread maninder singh Kumar
It really depends on what you want to do with your user authentication Sent from my iPad > On 14-Feb-2020, at 2:02 PM, Carsten Fuchs wrote: > >> Am 14.02.20 um 09:03 schrieb Mike Dewhirst: >> Definitely start a new project with a custom user and I would consider >> aborting an existing project

Re: Is a Custom User Model worth the headache?

2020-02-14 Thread Carsten Fuchs
Am 14.02.20 um 09:03 schrieb Mike Dewhirst: > Definitely start a new project with a custom user and I would consider > aborting an existing project to restart with a custom user if it was started > with the standard user. Which may not be possible for large, existing projects. Switching to a cu

Re: Is a Custom User Model worth the headache?

2020-02-14 Thread Mike Dewhirst
I agree. The custom user will be essential for you one day and the pain of retrofitting it is hard. I have done a retrofit and don't recommend it unless you have no other choice. Definitely start a new project with a custom user and I would consider aborting an existing project to restart wi

Re: Is a Custom User Model worth the headache?

2020-02-13 Thread maninder singh Kumar
Here's my opinion on this : 1. It requires the.user model to be the first migration 2. You could either want to extend or customise the User model 3. If extending is all you want then use the default authentication I tried customising it didn't find it worth my time Willy Sent from my iPad >

Re: Is a Custom User Model worth the headache?

2020-02-13 Thread bnmng
Thanks for the reply. That is a good post and I'll go along with the recommendation, though I still don't completely understand why adding a profile isn't as good as creating a custom user, and I wish I could figure out how to group custom users and auth groups together in the same admin secti

Re: Is a Custom User Model worth the headache?

2020-02-13 Thread SikoraD
Hi Ben, I'll highly recommended to read fantastic post on Will Vincent blog -> https://wsvincent.com/django-tips-custom-user-model/ His approach is much easier than one on django website and it is worth to have look. Also his djangox repo on github is very useful. Bes