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?

Gabriel Luk's avatar
36
Gabriel Luk
asked 2022-01-11 02:48:47 -0500
Evgeny's avatar
13.2k
Evgeny
updated 2022-01-14 17:37:32 -0500
edit flag offensive 0 remove flag close merge delete

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 (2022-01-14 17:36:45 -0500) edit
add a comment 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.

Evgeny's avatar
13.2k
Evgeny
answered 2022-01-14 17:34:10 -0500, updated 2022-01-14 17:38:39 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments