Forums

django getting a 500 error when user try to get to the page where he/she can change password

after user is login, the link to change password is not working. basically, anytime i try to change data in database, got error500 P.S the https security has not been set up for the change password site

Is it the feature of pythonanywhere that not allow any unsecured page to change sensitive information in database?

No, it is sounds like maybe you did not run syncdb or that your db connection details in settings.py is not specified correctly? You can either run a sqlite db on disk, or we also offer a mysql db that you can set up your app to connect to.

Conrad

i put the absolute path to db in setting and run syncbd already. But still not working

Is there anything in your error log?

re: using https to secure your site, that's up to you to manage...

Nothing in error log. BTW I am using the free trial pythonanywhere plan

That's strange. Normally if django generates a 500 error, it would output something to the error log. Have you made any changes to the LOGGING setting in settings.py?

No I have not change LOGGING in my setting.py. Can you check out my project to see what actually wrong? I have spent days on this error. Thanks

Try setting DEBUG=True and causing the error again?

when the DEBUG=True, I have an templateDoesNotExist error. However, it's working fine in my local machine And I triple checked the code, it looks fine

I have solved it Thank you so much