First time here? Check out the FAQ!
0

Setting DEBUG=False breaks voting
 

Hi, I'm trying to deploy askbot to heroku (with memcachier). All is working fine except when you try to upvote anything, an error occurs (with a red dialog that says):

invalid literal for int() with base 10: 'True'

But that only occurs when DEBUG is set to False. Is there any way to solve this other than leaving the server in debug mode?

Heroku logs doesn't show any sort of error reporting (I'm making logs go to stdout instead of a file).

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)
jeffhui's avatar
1
jeffhui
asked 12 years ago, updated 12 years ago

Comments

Your issue might be specific to your deployment - have you used any non-default configurations?

Evgeny's avatar Evgeny (12 years ago)
see more comments

1 Answer

0

Tried and could not reproduce. Maybe your static files are not served correctly? Did you ran python manage.py collectstatic?

Is your webserver configured to serve static files?

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