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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
junior123's avatar
63
junior123
asked 12 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago
link

Comments

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 !

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
junior123's avatar
63
junior123
answered 12 years ago, updated 12 years ago
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 (12 years ago)
see more comments