Hello. There are articles . It is necessary that the admin panel displays in Russian "Content", for example. I tried this: In the application folder in apps.py:

 # -*- coding: utf-8 -*- # # articles/apps.py from django.apps import AppConfig class ArticleAppConfig(AppConfig): name = "Содержание" verbose_name = "Содержание" 

Then in the folder with the application in __init__.py :

 # articles/__init__.py default_app_config = "articles.apps.ArticleAppConfig" 

The server at the start gives an error:

ImportError: No module named Contents

Will you be so kind)

    2 answers 2

    Error in specifying application name:

     class ArticleAppConfig(AppConfig): name = "articles" #имя вашего приложения verbose_name = u"Содержание" #желаемое имя для отображения 
    • Thank. So you can change the name of the objects. I do that. I need to change the name of the application. - Coveraver
    • @Coveraver found an error in your code, updated the answer. - Ivan Semochkin

    Now our application HOUSES in English. language, correct.

    Open the apps.py file inside the houses folder, add a HousesConfig field with the value “house” inside the HousesConfig class.

    Python2
    If an error occurs:

    SyntaxError: Non-ASCII character (no encoding declared; see http://www.python.org/peps/pep-0263.html )

    then you need to add the line:

     # -*- coding: utf-8 -*- class HousesConfig(AppConfig): name = 'houses' verbose_name = "дома" 

    And then in the __init__.py file in the same folder, create a variable:

     default_app_config = “houses.apps.HousesConfig” 

    Restart the server. Everything worked out.

    More on this link .