Cannot authenticate users django

2019-09-15 Thread CHARON
I'm having trouble logging in to django. I can't connect, clicking the button works (moves to the next page, but you do not need to enter login details to go there) When entering the password, the user does not matter as if the password has not been checked. I can only see the html comment when

Re: Cannot authenticate ...

2010-02-01 Thread tsmets
Apparently, extending the "User" is not the right way (since 2006). I believe this seems to explain it all : http://www.b-list.org/weblog/2006/jun/06/django-tips-extending-user-model/ \T, On Feb 1, 10:21 am, tsmets wrote: > well, > I think no, it is not the problem. > The problem can be examplif

Re: Cannot authenticate ...

2010-02-01 Thread tsmets
well, I think no, it is not the problem. The problem can be examplified like this : >>> username = 'tsmets' >>> pwd = '123456' # Is the user created in the console (when doing "synchdb") >>> user = authenticate(username=username, password=pwd) >>> print user tsmets >>> username = 'root' >>> pw

Re: Cannot authenticate ...

2010-01-31 Thread Dylan Evans
I think your password is stored in plaintext. try using User.set_password http://docs.djangoproject.com/en/dev/topics/auth/#passwords On Mon, Feb 1, 2010 at 10:42 AM, tsmets wrote: > I create in my model the Authors > > > class Author(User): > """ An Author is someone more of less identified "

Re: Cannot authenticate ...

2010-01-31 Thread tsmets
Forgot to add my source : _ models.py _ Testdata.py *** from django.db import models import logging from django.contrib.auth.models import User, UserManager log = logging.getLogger('dpaste.models') GENDER_

Cannot authenticate ...

2010-01-31 Thread tsmets
I create in my model the Authors class Author(User): """ An Author is someone more of less identified """ # TODO : Ensure that in fact the users are FK to the Django user management code gender = models.CharField(max_length=1, choices=GENDER_CHOICES) persistance = models.ForeignKey(Persis