python - How to use django registration redux? -


when enter email id in registration form , submit it, redirected page saying check email id. don't see mail in inbox. in terminal email printed, contains activation link. also, when goto activation link, says account activated. able logout. tried logging in, before logging out after logging out. both time failed log in. says please enter correct username , password. these settings. tried in both modes - debug = true , debug = false.

account_activation_days = 7 registration_auto_login = true login_url = '/accounts/login/' registration_email_subject_prefix = '[django registration test app]' send_activation_email = true registration_open = true email_backend = 'django.core.mail.backends.console.emailbackend' email_host='smtp-auth.iitb.ac.in' email_port=587 email_host_user='ngreloaded@iitb.ac.in' email_host_password='wrong.password' email_use_ssl = true email_use_tls = true default_from_email = 'ngreloaded@iitb.ac.in' 

but don't see mail in inbox. in terminal email printed, contains activation link.

that's because have defined email_backend in settings. have remove or comment line if want receive email inbox.

also, when goto activation link, says account activated. able logout.

that's because set registration_auto_login true. after activating user there method login_user called. in method "hack bypassing authenticate()" means method can log in without knowing password.

but tried logging in, before logging out after logging out. both time failed log in. says please enter correct username , password.

actually have never defined password. if there no password field in registration form, django automatically create random password during process of creating new user.

these settings. tried in both modes - debug = true , debug = false.

debug has nothing problem


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -