Ask Your Question
1

How to remove the debug warning header?

asked 2022-01-11 02:48:47 -0600

Gabriel Luk gravatar image

updated 2022-01-14 17:37:32 -0600

Evgeny gravatar image

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?

edit retag flag offensive 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 gravatar image Evgeny  ( 2022-01-14 17:36:45 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-01-14 17:34:10 -0600

Evgeny gravatar image

updated 2022-01-14 17:38:39 -0600

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2022-01-11 02:48:47 -0600

Seen: 38 times

Last updated: Jan 14