It's better to make a separate app for users. You can call the app users or
account. Create a form.py file in your users app. Then create a CustomUser
class that inherits from either AbstractUser or AbstractBaseUser (check out
the difference between the two). Then you can define the fields you want to
use.
Create UserCreationForm subsequently.

Create a folder called registration inside your templates folder and create
your login.html there

You must update your settings with
AUTH_USER_MODEL = 'users.CustomUser'

LOGIN_URL = 'login' Note, login here is the name you gave your login url.

On Sun, May 31, 2020, 3:37 PM Abhi Mathew <[email protected]> wrote:

> Here: Django Custom User Model
> <https://learnitfree.org/django-custom-user-model/>
> I don't how familiar you are with Django but this post will help you
> anyhow!
>
> On Wednesday, May 6, 2020 at 3:39:29 PM UTC+5:30, Anubhav Madhav wrote:
>>
>> I am new to Django. I need to make a custom sign up and log in page.
>> Because, during Sign Up, I also want to get User's Address and Contact
>> Number. In Django's 'User' module, it isn't supported. So, how can I make a
>> custom sign up and sign in page. Please Help!!
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/42f04b63-6d5f-473e-9526-a6fe906ceef8%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/42f04b63-6d5f-473e-9526-a6fe906ceef8%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALcuGNvPgG5Mcg%2BEj0bLu_%3DRjLQZY8E%2Btu2N8cv7enXosUa5_Q%40mail.gmail.com.

Reply via email to