Hi Tom ,
i can solve your code problem . contact me on my mail :-
sunilmishra1...@gmail.com
On Monday, November 20, 2017 at 8:50:18 AM UTC+5:30, Tom Tanner wrote:
>
> I'm following this [tutorial](
>
I changed a few things.
`models.py` now has this:
class MyUser(AbstractBaseUser):
email= models.CharField(max_length=254, unique=True)
USERNAME_FIELD= "email"
`forms.py`"
class RegisterForm(UserCreationForm):
email= forms.EmailField(label=_("Email"), max_length=254)
Hello Amitesh,
When you say to return HttpReponse(), how would that code look? And I'm
still learning Django, but how would this make it so that the only required
fields on my registration form are "email" and "password?"
Thanks.
On Sunday, November 19, 2017 at 11:30:51 PM UTC-5, Amitesh
Hello Tom,
Django comes inbuilt with user authentication functions which is almost more
than enough in most of the requirements.In your case, you just need to import
User model in models.py and in views.py under "if" statement just return
HttpResponse. You dont need to write anything else. For
I'm following this
[tutorial](https://simpleisbetterthancomplex.com/tutorial/2017/02/18/how-to-create-user-sign-up-view.html)
on making simple registration forms in Django. I'd like to make a user
registration form that requires only two fields: "Email" and "Password." No
second password
5 matches
Mail list logo