{% if settings.USING_RUNSERVER %} {% if settings.DEBUG == False %}

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.

{% endif %} {% else %} {% if settings.DEBUG == True %}

Debug mode is on, do not use it in production. To turn it off, use DEBUG = False in your settings.py file.

{% endif %} {% endif %}