summaryrefslogtreecommitdiffstats
path: root/askbot/templates/debug_header.html
blob: 824b7352771e2a0531e7eff8419939ba607c870a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% if settings.USING_RUNSERVER %}
    {% if settings.DEBUG == False %}
    <div>
        <p>
            You are seeing this message because you are using Django runserver
            and DEBUG_MODE is False. Runserver should not be used in production.
        </p>
        <p>
            To serve static media in production - please run:
            <pre>python manage.py collectstatic</pre>
        </p>
        <p>
            If you do not see page styling - set DEBUG_MODE = True or 
            use --insecure flag with the runserver command.
        </p>
    </div>
    {% endif %}
{% else %}
    {% if settings.DEBUG == True %}
        <div>
            <p> 
                Debug mode is on, do not use it in production.
                To turn it off, use DEBUG = False in your 
                settings.py file.
            </p>
        </div>
    {% endif %}
{% endif %}