Re: " AttributeError at /register/ " facing problem in implementing user registration
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. here is the source code of my course: https://github.com/codingforentrepreneurs/eCommerce/tree/master/src/ecommerce 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 -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4d98054b-983b-4db7-bdfd-344e80cc07e1%40stacktrace.dk.
Re: " AttributeError at /register/ " facing problem in implementing user registration
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 -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/1e2d5ba7-09f1-0b70-69bf-f136598b7989%40stacktrace.dk.