Ask Your Question
0

Will twitter sign-in only work if debug=true?

asked 2013-03-09 10:38:47 -0500

junior123 gravatar image

I was able to get twitter sign-in to work only after changing debug=true in settings.py - as a result now i have a message on top of website - "Debug mode is on, do not use it in production. To turn it off, use DEBUG = False in your settings.py file."

Will twitter signin work only if debug=true? if yes, how do i get rid of this message?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-03-09 10:44:57 -0500

Evgeny gravatar image

No, there is no connection between the operation of login methods and the debug mode.

To turn off - edit your settings.py, change DEBUG=True to DEBUG=False.

edit flag offensive delete link more
0

answered 2013-03-09 10:48:18 -0500

junior123 gravatar image

updated 2013-03-09 11:00:56 -0500

Evgeny, I was basically following your response here - http://askbot.org/en/question/3182/any-way-to-twitter-login/

"Twitter login worked for me - just tested. Does not work for you?

Are you not kicked by mistake to askbot.org on successful authentication? If so - please change the base url parameter in the "URLS" section.

Secondly the error might occur if your server time is out of sync with the world and to fix that one can run: ntpdate us.pool.ntp.org as root (the ntpdate tool may need to be installed).

Finally - just enable debug mode in the settings.py by changing DEBUG = False to DEBUG = True."

That is why I changed it, and that is when it worked !

Update: But now I changed debug back to false and twitter sign-in works !

edit flag offensive delete link more

Comments

Most likely you've just fixed your server time and it started to work. There is not connection with DEBUG true or false, just a coincidence.

Evgeny gravatar imageEvgeny ( 2013-03-09 22:14:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-03-09 10:38:47 -0500

Seen: 1,006 times

Last updated: Mar 09 '13