jwasham / computer-science-flash-cards

Mini website for testing both general CS knowledge and enforce coding practice and common algorithm/data structure memorization.
Creative Commons Attribution Share Alike 4.0 International
8.46k stars 2.02k forks source link

500 Internal Server Error after Logging In #69

Closed mdvsh closed 3 years ago

mdvsh commented 3 years ago

After following the steps in thoroughly to setup the app (working nginx and uwsgi configs), the site is able to load the login page. However on logging through the username and password previously changed in config.txt, the site returns a 500 Internal Server Error. on route (/cards)

/general image

Though I am able to go back to the login route and can see that my login state is indeed true as shown by the updated navbar. image

Still, all the links (/cards, /general, /code) give a 500 Internal Server Error. Interestingly, the logout route still works and I am able to log out successfully.

image

Is there any issue with the memory allocated to this app or have I done something wrong? Kindly tell. Thank you

mdvsh commented 3 years ago

I realised that I hadn't initialised the database. Maybe the author can add this step (currently only commented in flash_cards.py) in the README as well.

Closing...

jwasham commented 3 years ago

Feel free to add it and make a pull request!