# Changing django admin language

**URL:** <https://forum.djangoproject.com/t/changing-django-admin-language/8242>\
**Category:** Using Django\
**Created:** [June 7, 2021, 6:28am UTC](https://forum.djangoproject.com/t/changing-django-admin-language/8242 "2021-06-07T06:28:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MohammadGhiasvand](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MohammadGhiasvand](https://forum.djangoproject.com/u/MohammadGhiasvand)\
**Post date:** [June 7, 2021, 6:28am UTC](https://forum.djangoproject.com/t/changing-django-admin-language/8242/1 "2021-06-07T06:28:56Z")

</div>

Hi , I am Mohammad .  
I hope you are fine .  
How can I translate all of the parts of django admin to persian ?  
Thanks .  
Kind Regards .

---

<div class="post-metadata">

**Author:** ![marcorichetta](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/marcorichetta/32/26473_2.png) [@marcorichetta](https://forum.djangoproject.com/u/marcorichetta)\
**Post date:** [June 7, 2021, 5:39pm UTC](https://forum.djangoproject.com/t/changing-django-admin-language/8242/2 "2021-06-07T17:39:29Z")

</div>

Hi Mohammad.

You should set [`LANGUAGE_CODE`](https://docs.djangoproject.com/en/3.2/ref/settings/#language-code) in your `settings.py` to the persian identifier. Check which one you need here [Using Language Identifiers (RFC 3066)](http://www.i18nguy.com/unicode/language-identifiers.html).

Also make sure to enable [`USE_I18N`](https://docs.djangoproject.com/en/3.2/ref/settings/#use-i18n) and [`USE_L10N`](https://docs.djangoproject.com/en/3.2/ref/settings/#use-l10n) also on `settings.py`.

---

<div class="post-metadata">

**Author:** ![MohammadGhiasvand](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MohammadGhiasvand](https://forum.djangoproject.com/u/MohammadGhiasvand)\
**Post date:** [June 8, 2021, 3:11am UTC](https://forum.djangoproject.com/t/changing-django-admin-language/8242/3 "2021-06-08T03:11:55Z")

</div>

Hi @marcorichetta . Thank you very much for your response .  
I have done that but unfortunalely When I run server and see django admin , some parts such as the name of the classes in models.py with they variables inside that I registered them into admin are still in English .

---

<div class="post-metadata">

**Author:** ![marcorichetta](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/marcorichetta/32/26473_2.png) [@marcorichetta](https://forum.djangoproject.com/u/marcorichetta)\
**Post date:** [June 8, 2021, 3:05pm UTC](https://forum.djangoproject.com/t/changing-django-admin-language/8242/4 "2021-06-08T15:05:48Z")

</div>

Those settings work for internationalization and localization of Django itself.

If you need to translate your own things like model fields or templates, you’ll have to provide the translations. Make sure to check the [translation documentation](https://docs.djangoproject.com/en/3.2/topics/i18n/translation/), it gives an overview on translating Django projects.

Specifically for your need I leave some resources:

- [how to do Django translation of model fields? - Stack Overflow](https://stackoverflow.com/questions/8542778/how-to-do-django-translation-of-model-fields)
- [Django Packages : Model translation](https://djangopackages.org/grids/g/model-translation/)

---

<div class="post-metadata">

**Author:** ![MohammadGhiasvand](https://avatars.discourse-cdn.com/v4/letter/m/43a26b/32.png) [@MohammadGhiasvand](https://forum.djangoproject.com/u/MohammadGhiasvand)\
**Post date:** [June 8, 2021, 4:05pm UTC](https://forum.djangoproject.com/t/changing-django-admin-language/8242/5 "2021-06-08T16:05:31Z")

</div>

Thank you for your response .
