First time here? Check out the FAQ!
0

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

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?

junior123's avatar
63
junior123
asked 2013-03-09 10:38:47 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2013-03-09 10:44:57 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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 !

junior123's avatar
63
junior123
answered 2013-03-09 10:48:18 -0500, updated 2013-03-09 11:00:56 -0500
edit flag offensive 0 remove flag delete link

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's avatar Evgeny (2013-03-09 22:14:08 -0500) edit
add a comment see more comments