I can't login to my Django app when debug is set to False
Do you have a custom 500 error handler set up? Is that doing something weird with the session, perhaps?
Short Story: I get locked out of my Django app when Debug is set to False. 
Long story:
Case 1 (the first time it happened):

I enter my login info, but It just redirects to the login page.
I restart the server, try to login, and it works fine, I get in.
a few hours later I come back, log out, try to log back in and I can't. It just redirects to the login page.

Case 2 (I figure out how to provoke the login failure):

I restart the server and am able to login to the site.
I log in and log out several times, everything is fine.
I go to a non-existing page and get a server error.
I log out and try to log back in, and I can't, just get redirected back to the login page.

Case 3 (I can't provoke the login failure with Debug set to True):
1. I restart the server and am able to login to the site.
2. I log in and log out several times, everything is fine.
3. I go to a non-existing page and get a traceback.
4. I log out and log back in, everything works.
5. I wait and play around with it and can't get the login to fail while in Debug mode.
Please help!