Forums

login issues

Kindly assist this django newbie. I deployed a web app with sqlite database. it has user authentication. The problem now is, if a new user registers, they can't log in. but if i log in to the backend, i can see all their successful registration attempts. they're recognized as legit users but can't log in.

please advise

There are many parts to the Django authentication system and it's impossible from this to tell where you might have gone wrong. Check the documentaion for Django auth (https://docs.djangoproject.com/en/4.1/topics/auth/default/) and check that you have everything correctly in place.

Hi. Thank you very much. However, I forgot to add. on the local host, everything works perfectly. this began after it had been deployed. so, is there anything i am forgetting to do? if i log in with the credentials i created when i was still on localhost, or the super user account, I am able to log in. but since deployment, while registrations are successful, users cannot log in.

Do you see those users in the Django admin?

yes, i can see the users in the Django admin

Are the users marked as "active" in the admin page? You can see that by clicking on the username.

yes, please, they're active

Do you see the users in the Django admin on PythonAnywhere?

yes. i can see them in the django admin. and it shows they're active. but for some reason, they just cannot log in

i have solved it. i just deleted my own form and used django default instead. Thank you very much for your assistance and patience with me. I really appreciate

Great -- thanks for letting us know!