" AttributeError at /register/ " facing problem in implementing user registration

32 views
Skip to first unread message

Madhav Nandan

unread,
May 23, 2020, 10:56:01 PM5/23/20
to django...@googlegroups.com
Hi, 
I need help here. I did the required changes in forms.py as well as in view.py but my user registration still not working.

See Screenshots:





Regards,
--
Madhav Nandan
Screenshot 2020-05-24 at 8.18.32 AM.png
Screenshot 2020-05-24 at 8.18.01 AM.png
Screenshot 2020-05-24 at 8.17.32 AM.png

Kasper Laudrup

unread,
May 24, 2020, 3:31:31 AM5/24/20
to django...@googlegroups.com
Hi Madhav,

On 24/05/2020 04.54, Madhav Nandan wrote:
> Hi,
> I need help here. I did the required changes in forms.py as well as in
> view.py but my user registration still not working.
>

Once again, try to make sense from the error messages. They are actually
pointing to your problem quite clearly.

In this case, what is your "User" object in your forms.py file?

It is hard to tell since you've only provided some screenshots, but this
line:

User = get_user_model()

in your views.py file looks very suspicious.

Why are you creating a global User variable?

Did you do the same in forms.py for some reason and why?

Kind regards,

Kasper Laudrup

Madhav Nandan

unread,
May 24, 2020, 7:10:40 AM5/24/20
to django...@googlegroups.com
I'm creating a register page. 

see the screenshot below., I'm following lectures and doing as instructed but still stuck.


Please help me get run the code.


Regards,

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1e2d5ba7-09f1-0b70-69bf-f136598b7989%40stacktrace.dk.


--
Madhav Nandan
Screenshot 2020-05-24 at 4.32.46 PM.png
Screenshot 2020-05-24 at 4.29.36 PM.png

Kasper Laudrup

unread,
May 24, 2020, 8:57:45 AM5/24/20
to django...@googlegroups.com
Hi Madhav,

On 24/05/2020 13.08, Madhav Nandan wrote:
> I'm creating a register page.
>
> see the screenshot below., I'm following lectures and doing as
> instructed but still stuck.
>

I don't see how the screenshots are related to the issue you are having.
Please explain.
Great. How is that relevant?

> Please help me get run the code.
>

I *am* trying to help you. I asked you some questions related to the
problem you were facing. You could start by answering those.

Feel free to ask any further questions related to that if something's
not clear.

Kind regards,

Kasper Laudrup
Reply all
Reply to author
Forward
0 new messages