#31309: Django admin site needs X-UA-Compatible meta tag to prevent IE rendering
the page poorly in compatibility mode.
-----------------------------------+--------------------------------------
     Reporter:  Petter Strandmark  |                    Owner:  nobody
         Type:  Bug                |                   Status:  closed
    Component:  contrib.admin      |                  Version:  3.0
     Severity:  Normal             |               Resolution:  wontfix
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by Carlton Gibson):

 * status:  new => closed
 * resolution:   => wontfix


Comment:

 [https://docs.microsoft.com/en-us/previous-versions/windows/internet-
 explorer/ie-developer/compatibility/jj676915(v=vs.85)?redirectedfrom=MSDN
 As per Microsoft's advice] we use the HTML5 document type: `<!DOCTYPE
 html>`. Document modes have been deprecated since 2013 and "should not be
 used".

 If you want this you can create your own `admin/base.html`, as per the
 [https://docs.djangoproject.com/en/3.0/howto/overriding-templates/
 Overriding templates docs].

 Give it the following content to add the meta tag to the existing block:

 {{{
 {% extends 'admin/base.html' %}

 {% block extrahead %}
 <meta http-equiv="X-UA-Compatible" content="IE=11" />
 {% endblock %}
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31309#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.bbd6ffd618277affd334b2d77dc88cbc%40djangoproject.com.

Reply via email to