how to add change language dropdown to Django(1.10) admin?
<p>I'm planning to add change language dropdown in my admin page.
according to <a href="https://djangosnippets.org/snippets/751/" rel="nofollow">this code</a> and <a href="http://stackoverflow.com/questions/17978260/how-do-i-correctly-extend-the-django-admin-base-html-template">How to extend admin page</a>. <br/>
I copy <code>base_site.html</code> and copy it to <code>myapp/templates/admin</code>, the i create a html file named <code>change_language.html</code> and write this code in it:</p>

<pre><code>{% load i18n %}
/ {% trans 'Change language' %}
&lt;form action="/i18n/setlang/" method="post" style="display: inline;"&gt;
  &lt;div style="display: inline;"&gt;
    &lt;select name="language" onchange="javascript:form.submit()"&gt;
      {% for lang in LANGUAGES %}
        &lt;option value="{{ lang.0 }}"{% ifequal LANGUAGE_CODE lang.0 %} selected="selected"{% endifequal %}&gt;{{ lang.1 }}&lt;/option&gt;
      {% endfor %}
    &lt;/select&gt;
  &lt;/div&gt;
&lt;/form&gt;
</code></pre>

<p>I add <code>{% extends 'admin/base_site.html' %}</code> at the top of this file, noting happens.<br/>
I add <code>{% extends 'admin/base.html' %}</code> , again noting happens.<br/>
All hints and answers says that we should change something name <code>&lt;div id="user-tools"&gt;</code> at line 25 of <code>base.html</code>, But in Django 1.10 it goes to line 31 with a different staff. im kinnda lost because i read many different staff every where  and non of them works for me. Dose any know where im doing wrong ?
<br/>
here is my middlewares :</p>

<pre><code>MIDDLEWARE = [
'django.middleware.security.SecurityMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
]
</code></pre>

<p>And template settings :</p>

<pre><code>TEMPLATES = [
{
    'BACKEND': 'django.template.backends.django.DjangoTemplates',
    'DIRS': [
        os.path.join(BASE_DIR,'templates'),
    ],
    'APP_DIRS': True,
    'OPTIONS': {
        'context_processors': [
            'django.template.context_processors.debug',
            'django.template.context_processors.request',
            'django.contrib.auth.context_processors.auth',
            'django.contrib.messages.context_processors.messages',
        ],
    },
},
]
</code></pre>

<p>I guess you are mixing both answers that you've found on the internet. One of them copies and changes a couple of files from the admin template, effectively overriding them in your program's references. The second one extends admin's templates. You should completely implement just one of them.</p>

python django django-admin multilingual django-multilingual