First time here? Check out the FAQ!
1

How to remove the debug warning header?
 

After several tries, I upgraded to 0.11.1 from 0.10.2. I can start my AskBot with python manage.py runserver --insecure 0.0.0.0:9080. I found the following messages at the top of the page.

You are seeing this message because you are using Django runserver and DEBUG_MODE is False. Runserver should not be used in production.

To serve static media in production - please run:

python manage.py collectstatic

If you do not see page styling - set DEBUG_MODE = True or use --insecure flag with the runserver command.

How can I suppress them?

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)
Gabriel Luk's avatar
36
Gabriel Luk
asked 3 years ago
Evgeny's avatar
13.2k
Evgeny
updated 3 years ago

Comments

Just want to ask you make decent question titles, I see two questions titled "askbot 0.11.1" and was going to delete one of them for being duplicate. It's best if the title is the short version of the question itself.

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

1 Answer

1

Hi Gabriel, there is a typo in the message indeed - the parameter to edit is DEBUG not DEBUG_MODE.

The message will go away if you ether stop using the runserver or set DEBUG = True in the settings.py 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)
Evgeny's avatar
13.2k
Evgeny
answered 3 years ago, updated 3 years ago
link

Comments

see more comments